From b0478ef330b8f729554aec55baa81d9e3d02a063 Mon Sep 17 00:00:00 2001 From: plegall Date: Fri, 9 Mar 2007 16:28:49 +0000 Subject: New: #images.high_filesize was added so that we can sum the filesizes in the filtered history. #images.high_filesize is filled during metadata synchronization. Bug fixed: in getAttribute XML function, when asking "filesize", it was returning high_filesize. The regex was too simple. git-svn-id: http://piwigo.org/svn/trunk@1883 68402e56-0260-453c-a942-63ccdbb3a9ee --- tools/create_listing_file.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools/create_listing_file.php') diff --git a/tools/create_listing_file.php b/tools/create_listing_file.php index be72e24be..6703e1843 100644 --- a/tools/create_listing_file.php +++ b/tools/create_listing_file.php @@ -714,6 +714,9 @@ function pwg_scan_file($file_full, &$line) if (pwg_get_high($file_dir, $file_base)) { $element['has_high'] = 'true'; + + $high_file = $file_dir.'/'.$conf['high'].'/'.$file_base; + $element['high_filesize'] = floor(filesize($high_file) / 1024); } // get EXIF meta datas -- cgit v1.2.3