mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-09 10:13:00 +02:00
remove all array_push (50% slower than []) + some changes missing for feature:2978
git-svn-id: http://piwigo.org/svn/trunk@25018 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -52,12 +52,9 @@ function open()
|
||||
|
||||
if (!is_dir($this->site_url))
|
||||
{
|
||||
array_push(
|
||||
$errors,
|
||||
array(
|
||||
'path' => $this->site_url,
|
||||
'type' => 'PWG-ERROR-NO-FS'
|
||||
)
|
||||
$errors[] = array(
|
||||
'path' => $this->site_url,
|
||||
'type' => 'PWG-ERROR-NO-FS'
|
||||
);
|
||||
|
||||
return false;
|
||||
@@ -108,12 +105,12 @@ function get_elements($path)
|
||||
);
|
||||
}
|
||||
}
|
||||
elseif (is_dir($path.'/'.$node)
|
||||
else if (is_dir($path.'/'.$node)
|
||||
and $node != 'pwg_high'
|
||||
and $node != 'pwg_representative'
|
||||
and $node != 'thumbnail' )
|
||||
{
|
||||
array_push($subdirs, $node);
|
||||
$subdirs[] = $node;
|
||||
}
|
||||
} //end while readdir
|
||||
closedir($contents);
|
||||
|
||||
Reference in New Issue
Block a user