Index: openacs-4/packages/attachments/www/go-to-attachment.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/attachments/www/go-to-attachment.tcl,v diff -u -N -r1.10.4.2 -r1.10.4.3 --- openacs-4/packages/attachments/www/go-to-attachment.tcl 29 Jul 2014 11:24:00 -0000 1.10.4.2 +++ openacs-4/packages/attachments/www/go-to-attachment.tcl 10 Sep 2014 08:26:51 -0000 1.10.4.3 @@ -12,7 +12,7 @@ permission::require_permission -object_id $object_id -privilege read # Get information about attachment -set content_type [item::get_type $attachment_id] +set content_type [content::item::get_content_type -item_id $attachment_id] if { $content_type eq "" } { ad_return_complaint 1 [_ attachments.lt_No_such_attachment_fo] return