aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorgweltas <gweltas@piwigo.org>2004-08-29 16:56:05 +0000
committergweltas <gweltas@piwigo.org>2004-08-29 16:56:05 +0000
commit288477381884604663d246c9054042af6c5b8feb (patch)
tree349681bca702917676d8e2035af1e306d8992e4c /admin
parentbfff1c341d09e15440569afb311771227e9b11d8 (diff)
PHP5 compatibility
git-svn-id: http://piwigo.org/svn/trunk@504 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-rw-r--r--admin/thumbnail.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/admin/thumbnail.php b/admin/thumbnail.php
index 21e549396..ba4937aa1 100644
--- a/admin/thumbnail.php
+++ b/admin/thumbnail.php
@@ -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'] );
}
}