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
This commit is contained in:
plegall
2007-03-09 16:28:49 +00:00
parent 81030a7ab4
commit b0478ef330
13 changed files with 326 additions and 36 deletions
+11 -6
View File
@@ -47,7 +47,7 @@ function RemoteSiteReader($url, $listing_url)
'tn_ext', 'representative_ext', 'has_high',
);
$this->metadata_attributes = array(
'filesize', 'width', 'height'
'filesize', 'width', 'height', 'high_filesize'
);
if (!isset($listing_url))
@@ -88,11 +88,16 @@ function open()
return false;
}
$this->metadata_attributes = array_merge(
$this->metadata_attributes,
explode(',', getAttribute($info_xml_element, 'metadata'))
);
$additional_metadata = getAttribute($info_xml_element, 'metadata');
if ($additional_metadata != '')
{
$this->metadata_attributes = array_merge(
$this->metadata_attributes,
explode(',', $additional_metadata)
);
}
$this->build_structure($xml_content, '', 0);
return true;
@@ -179,7 +184,7 @@ function get_metadata_attributes()
}
// returns a hash of attributes (metadata+width,...) for file
function get_element_metadata($file)
function get_element_metadata($file, $has_high = false)
{
return $this->get_element_attributes(
$file,