Index: openacs-4/packages/file-storage/www/index.vuh =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/www/index.vuh,v diff -u -r1.4 -r1.5 --- openacs-4/packages/file-storage/www/index.vuh 17 Jan 2007 15:41:16 -0000 1.4 +++ openacs-4/packages/file-storage/www/index.vuh 27 Oct 2014 16:41:33 -0000 1.5 @@ -11,7 +11,7 @@ set root_folder [fs_get_root_folder] set file_item_id [fs::get_item_id -name $extra_uri -folder_id $root_folder] ns_log debug "File Storage index.vuh item_id=$file_item_id URL=[ad_conn url]" -if {[empty_string_p $file_item_id]} { +if {$file_item_id eq ""} { ns_log debug "File Storage return not found" ns_return 404 text/plain "File Not Found" ad_script_abort @@ -21,7 +21,7 @@ -privilege read \ -party_id [ad_conn user_id] -set file_live_revision [item::get_live_revision $file_item_id] +set file_live_revision [content::item::get_live_revision -item_id $file_item_id] if {[apm_package_installed_p views]} { views::record_view -object_id $file_item_id -viewer_id $user_id