PHP5 compatibility

git-svn-id: http://piwigo.org/svn/trunk@504 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
gweltas 2004-08-29 16:56:05 +00:00
commit 2884773818

View file

@ -73,12 +73,12 @@ function get_images_without_thumbnail( $dir )
return $images; return $images;
} }
// scandir scans a dir to find pictures without thumbnails. Once found, // phpwg_scandir scans a dir to find pictures without thumbnails. Once found,
// creation of the thumbnails (RatioResizeImg). Only the first $_POST['n'] // creation of the thumbnails (RatioResizeImg). Only the first $_POST['n']
// pictures without thumbnails are treated. // pictures without thumbnails are treated.
// scandir returns an array with the generation time of each thumbnail (for // scandir returns an array with the generation time of each thumbnail (for
// statistics purpose) // statistics purpose)
function scandir( $dir, $width, $height ) function phpwg_scandir( $dir, $width, $height )
{ {
global $conf; global $conf;
$stats = array(); $stats = array();
@ -267,7 +267,7 @@ if ( isset( $_GET['dir'] ) && isset( $_POST['submit'] ))
// picture miniaturization // picture miniaturization
if ( count( $errors ) == 0 ) if ( count( $errors ) == 0 )
{ {
$stats = scandir( $_GET['dir'], $_POST['width'], $_POST['height'] ); $stats = phpwg_scandir( $_GET['dir'], $_POST['width'], $_POST['height'] );
} }
} }