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:
parent
81030a7ab4
commit
b0478ef330
13 changed files with 326 additions and 36 deletions
|
|
@ -52,7 +52,7 @@ function getContent( $element )
|
|||
function getAttribute( $element, $attribute )
|
||||
{
|
||||
// echo htmlentities($element).'<br /><br />';
|
||||
$regex = '/^<\w+[^>]*'.$attribute.'\s*=\s*"('.VAL_REG.')"/i';
|
||||
$regex = '/^<\w+[^>]*\b'.$attribute.'\s*=\s*"('.VAL_REG.')"/i';
|
||||
if ( preg_match( $regex, $element, $out ) )
|
||||
{
|
||||
return html_entity_decode($out[1], ENT_QUOTES);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue