Index: openacs-4/packages/file-storage/www/download/index.vuh =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/www/download/index.vuh,v diff -u -r1.4.2.2 -r1.4.2.3 --- openacs-4/packages/file-storage/www/download/index.vuh 23 Feb 2006 14:29:35 -0000 1.4.2.2 +++ openacs-4/packages/file-storage/www/download/index.vuh 2 Apr 2006 22:11:50 -0000 1.4.2.3 @@ -29,5 +29,8 @@ ad_require_permission $version_id "read" -# cr_write_content -revision_id $version_id -cr_write_content -item_id $file_id \ No newline at end of file +if {[exists_and_not_null file_id]} { + cr_write_content -item_id $file_id +} else { + cr_write_content -revision_id $version_id +}