Index: openacs-4/packages/attendance/www/admin/certificates.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/attendance/www/admin/certificates.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/attendance/www/admin/certificates.tcl 3 Apr 2006 01:11:14 -0000 1.2 +++ openacs-4/packages/attendance/www/admin/certificates.tcl 5 Apr 2006 01:49:01 -0000 1.3 @@ -22,7 +22,7 @@ set package_id [ad_conn package_id] # setup multirow of user data - +set user_id [split $user_id] ad_form -name certificates \ -html { enctype multipart/form-data } \ -export {user_id community_id} \ @@ -192,7 +192,7 @@ ad_return_complaint 1 "$errmsg" } - ns_set put [ad_conn outputheaders] file-disposition "certificates.pdf" + ns_set put [ad_conn outputheaders] content-disposition "attachment; filename=certificates-[util_text_to_url -text ${community_name}]-[clock format [clock seconds] -format "%Y%m%d-%H%M"].pdf" ns_returnfile 200 application/pdf $pdf_tmpname file delete $rml_tmpname file delete $pdf_tmpname