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;
}
// 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']
// pictures without thumbnails are treated.
// scandir returns an array with the generation time of each thumbnail (for
// statistics purpose)
function scandir( $dir, $width, $height )
function phpwg_scandir( $dir, $width, $height )
{
global $conf;
$stats = array();
@ -267,7 +267,7 @@ if ( isset( $_GET['dir'] ) && isset( $_POST['submit'] ))
// picture miniaturization
if ( count( $errors ) == 0 )
{
$stats = scandir( $_GET['dir'], $_POST['width'], $_POST['height'] );
$stats = phpwg_scandir( $_GET['dir'], $_POST['width'], $_POST['height'] );
}
}