Index: openacs-4/packages/xowiki/www/xinha/file-selector.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/xinha/file-selector.tcl,v diff -u -r1.21 -r1.21.2.1 --- openacs-4/packages/xowiki/www/xinha/file-selector.tcl 12 Jun 2018 09:13:16 -0000 1.21 +++ openacs-4/packages/xowiki/www/xinha/file-selector.tcl 25 Jun 2019 12:56:19 -0000 1.21.2.1 @@ -290,13 +290,10 @@ } contents get_fs_contents $fs_sql { set last_modified_ansi [lc_time_system_to_conn $last_modified_ansi] set last_modified_pretty [lc_time_fmt $last_modified_ansi "%x %X"] - set content_size_pretty [lc_numeric $content_size] + set content_size_pretty [util::content_size_pretty -size $content_size] - if {$type eq "folder"} { - # append content_size_pretty " [_ file-storage.items]" - set content_size_pretty "" - } else { - append content_size_pretty " [_ file-storage.bytes]" + if {$type ne "folder"} { + incr content_size_total $content_size } if {$title eq ""} { set title $name @@ -305,9 +302,6 @@ set file_upload_name [ad_sanitize_filename \ -tolower \ $file_upload_name] - if { $content_size ne "" } { - incr content_size_total $content_size - } set name [lang::util::localize $name] @@ -349,7 +343,6 @@ } } - ad_return_template # Local variables: