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_remote.php

    r1204 r1883  
    4848    );
    4949  $this->metadata_attributes = array(
    50     'filesize', 'width', 'height'
     50    'filesize', 'width', 'height', 'high_filesize'
    5151    );
    5252
     
    8989    }
    9090
    91     $this->metadata_attributes = array_merge(
    92       $this->metadata_attributes,
    93       explode(',', getAttribute($info_xml_element, 'metadata'))
    94       );
    95 
     91    $additional_metadata = getAttribute($info_xml_element, 'metadata');
     92
     93    if ($additional_metadata != '')
     94    {
     95      $this->metadata_attributes = array_merge(
     96        $this->metadata_attributes,
     97        explode(',', $additional_metadata)
     98        );
     99    }
     100   
    96101    $this->build_structure($xml_content, '', 0);
    97102
     
    180185
    181186// returns a hash of attributes (metadata+width,...) for file
    182 function get_element_metadata($file)
     187function get_element_metadata($file, $has_high = false)
    183188{
    184189  return $this->get_element_attributes(
Note: See TracChangeset for help on using the changeset viewer.