- bug 55 : Cannot redeclare scandir(), this function is new in PHP 5.x

git-svn-id: http://piwigo.org/svn/branches/release-1_3@557 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
z0rglub
2004-10-07 21:42:22 +00:00
parent deb89a13d8
commit 09a00acc0c
+4 -4
View File
@@ -68,12 +68,12 @@ function get_images_without_thumbnail( $dir )
return $images;
}
// scandir scans a dir to find pictures without thumbnails. Once found,
// pwg_scandir scans a dir to find pictures without thumbnails. Once found,
// creation of the thumbnails (RatioResizeImg). Only the first $_POST['n']
// pictures without thumbnails are treated.
// scandir returns an array with the generation time of each thumbnail (for
// pwg_scandir returns an array with the generation time of each thumbnail (for
// statistics purpose)
function scandir( $dir, $width, $height )
function pwg_scandir( $dir, $width, $height )
{
global $conf;
$stats = array();
@@ -297,7 +297,7 @@ if ( isset( $_GET['dir'] ) )
if ( count( $errors ) == 0 )
{
$vtp->addSession( $sub, 'results' );
$stats = scandir( $_GET['dir'], $_POST['width'], $_POST['height'] );
$stats = pwg_scandir( $_GET['dir'], $_POST['width'], $_POST['height'] );
$times = array();
foreach ( $stats as $stat ) {
array_push( $times, $stat['time'] );