Index: openacs-4/packages/acs-subsite/www/shared/portrait-bits.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/www/shared/portrait-bits.tcl,v diff -u -N -r1.20 -r1.20.2.1 --- openacs-4/packages/acs-subsite/www/shared/portrait-bits.tcl 28 Jan 2019 23:13:39 -0000 1.20 +++ openacs-4/packages/acs-subsite/www/shared/portrait-bits.tcl 21 Jul 2020 14:08:50 -0000 1.20.2.1 @@ -46,13 +46,13 @@ # set folder [acs_root_dir]/portrait-thumbnails - if {![file exists $folder]} { + if {![ad_file exists $folder]} { file mkdir $folder } set filename $folder/$itemInfo(revision_id).$size - if {![file exists $filename]} { + if {![ad_file exists $filename]} { switch -- $itemInfo(storage_type) { "file" { set input_file [content::revision::get_cr_file_path -revision_id $itemInfo(revision_id)] @@ -92,7 +92,7 @@ # Test again if the file exists, we might have converted the # file by the if-clause above. # - if {[file exists $filename]} { + if {[ad_file exists $filename]} { ns_setexpires 86400 ;# 1 day # # We had "ad_returnfile_background" before, which is a