Index: openacs-4/packages/dotlrn-homework/www/file.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-homework/www/file.tcl,v diff -u -r1.4 -r1.5 --- openacs-4/packages/dotlrn-homework/www/file.tcl 13 Jan 2005 13:57:29 -0000 1.4 +++ openacs-4/packages/dotlrn-homework/www/file.tcl 27 Oct 2014 16:41:21 -0000 1.5 @@ -15,7 +15,7 @@ {show_all_versions_p "f"} } -validate { valid_file -requires {file_id} { - if ![fs_file_p $file_id] { + if {![fs_file_p $file_id]} { ad_complain "[_ dotlrn-homework.lt_specified_file]" } } @@ -35,7 +35,7 @@ # check that they have read permission on this file. -ad_require_permission $file_id read +permission::require_permission -object_id $file_id -privilege read #set templating datasources @@ -53,7 +53,7 @@ # idea so I'm not putting out a link to it. As of July Sloan agrees. set copy_url "file-copy?[export_vars {file_id name}]" -if {[string equal $show_all_versions_p "t"]} { +if {$show_all_versions_p == "t"} { set show_versions [db_map show_all_versions] } else { set show_versions [db_map show_live_version]