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.6 -r1.7 --- openacs-4/packages/file-storage/www/download/index.vuh 8 Aug 2006 21:26:49 -0000 1.6 +++ openacs-4/packages/file-storage/www/download/index.vuh 23 Nov 2006 12:38:27 -0000 1.7 @@ -29,6 +29,11 @@ ad_require_permission $version_id "read" + +if {[apm_package_installed_p views]} { + 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 {