PHP5 compatibility
git-svn-id: http://piwigo.org/svn/trunk@504 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
bfff1c341d
commit
2884773818
1 changed files with 3 additions and 3 deletions
|
|
@ -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'] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue