Ignore:
Timestamp:
Mar 9, 2007, 5:28:49 PM (17 years ago)
Author:
plg
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/site_reader_local.php

    r1717 r1883  
    158158  global $conf;
    159159
    160   $update_fields = array('filesize', 'width', 'height');
     160  $update_fields = array('filesize', 'width', 'height', 'high_filesize');
    161161
    162162  if ($conf['use_exif'])
     
    182182
    183183// returns a hash of attributes (metadata+filesize+width,...) for file
    184 function get_element_metadata($file)
     184function get_element_metadata($file, $has_high = false)
    185185{
    186186  global $conf;
     
    200200  }
    201201
     202  if ($has_high)
     203  {
     204    $high_file = dirname($file).'/pwg_high/'.basename($file);
     205   
     206    $data['high_filesize'] = floor(filesize($high_file)/1024);
     207  }
     208 
    202209  if ($conf['use_exif'])
    203210  {
Note: See TracChangeset for help on using the changeset viewer.