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 -N -r1.7 -r1.7.2.1 --- openacs-4/packages/file-storage/www/download/index.vuh 23 Nov 2006 12:38:27 -0000 1.7 +++ openacs-4/packages/file-storage/www/download/index.vuh 14 Mar 2007 18:39:31 -0000 1.7.2.1 @@ -21,9 +21,7 @@ if {![exists_and_not_null version_id]} { set version_id [item::get_live_revision $file_id] -} elseif {![exists_and_not_null file_id]} { - set file_id [content::revision::item_id -revision_id $version_id] -} +} set user_id [ad_conn user_id] @@ -34,8 +32,5 @@ views::record_view -object_id $file_id -viewer_id $user_id } -if {[exists_and_not_null file_id]} { - cr_write_content -item_id $file_id -} else { - cr_write_content -revision_id $version_id -} +cr_write_content -revision_id $version_id +