Index: openacs-4/packages/file-storage/www/view/index.vuh =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/www/view/index.vuh,v diff -u -r1.8.2.1 -r1.8.2.2 --- openacs-4/packages/file-storage/www/view/index.vuh 6 Sep 2013 16:54:48 -0000 1.8.2.1 +++ openacs-4/packages/file-storage/www/view/index.vuh 8 Sep 2013 08:11:58 -0000 1.8.2.2 @@ -34,7 +34,7 @@ if {[parameter::get -parameter BehaveLikeFilesystemP -default 0] || [catch {set init_p [content::init the_url the_root $content_root $template_root public $revision_id $content_type]}] || !$init_p } { # Make sure we are not dealing with an upgraded file and there exists a file with the title - if { [string equal "" $file_id] } { + if {$file_id eq ""} { set splitted_url [split $the_url "/"] set item_url_title [lindex $splitted_url end] @@ -59,7 +59,7 @@ set file_id [content::symlink::resolve -item_id $file_id] } - if {![exists_and_not_null version_id]} { + if {(![info exists version_id] || $version_id eq "")} { set version_id [content::item::get_live_revision -item_id $file_id] }