aboutsummaryrefslogtreecommitdiffstats
path: root/tools/create_listing_file.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2009-10-14 16:13:25 +0000
committerpatdenice <patdenice@piwigo.org>2009-10-14 16:13:25 +0000
commite04bd969cb1566afd69a1efdf5fb502829d6491e (patch)
treeb7897d31a6fbb60b670a91b1dbee21ac19029f49 /tools/create_listing_file.php
parent246634cb72fdd3c9e0b9f67be2bb9e7fe12aabee (diff)
Replace another depreciated functions.
Depreciated functions were removed in trunk in commit 3747 by Eric. git-svn-id: http://piwigo.org/svn/branches/2.0@4036 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'tools/create_listing_file.php')
-rw-r--r--tools/create_listing_file.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/create_listing_file.php b/tools/create_listing_file.php
index 13fb057ab..f4ca4f8fe 100644
--- a/tools/create_listing_file.php
+++ b/tools/create_listing_file.php
@@ -203,7 +203,7 @@ function pwg_check_graphics()
$info = gd_info();
// Backup GD major version
- $pwg_conf['gd_version_full'] = ereg_replace('[[:alpha:][:space:]()]+', '', $info['GD Version']);
+ $pwg_conf['gd_version_full'] = preg_replace('/[[:alpha:][:space:]()]+/', '', $info['GD Version']);
list($pwg_conf['gd_version_major']) = preg_split('/[.]+/', $pwg_conf['gd_version_full']);
// Backup input/output format support
@@ -1087,7 +1087,7 @@ function pwg_test_exit()
else
{
$info = gd_info();
- $gd_full_version = ereg_replace('[[:alpha:][:space:]()]+', '', $info['GD Version']);
+ $gd_full_version = preg_replace('/[[:alpha:][:space:]()]+/', '', $info['GD Version']);
list($gd_version) = preg_split('/[.]+/', $gd_full_version);
$g_message .= ' <h3>Image generation</h3>'."\n";