diff options
author | Eric <eric@piwigo.org> | 2009-08-17 16:21:09 +0000 |
---|---|---|
committer | Eric <eric@piwigo.org> | 2009-08-17 16:21:09 +0000 |
commit | bac7567b5c5a994642cede7fd0c4298e0b2d2389 (patch) | |
tree | 970329898f5be8a89cb265222e15b6c0d5deef8c /tools/create_listing_file.php | |
parent | 3aeef9ac266d304115b62442ace9fa8513646b97 (diff) |
PHP 5.3 compatibility - Deprecated functions were replace as follows :
ereg() -> preg_match()
ereg_replace() -> preg_replace()
eregi() -> preg_match() with the 'i' modifier
eregi_replace() -> preg_replace() with the 'i' modifier
set_magic_quotes_runtime() -> No more usefull. Fixed it by adding "@" prefix.
git-svn-id: http://piwigo.org/svn/trunk@3747 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'tools/create_listing_file.php')
-rw-r--r-- | tools/create_listing_file.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/create_listing_file.php b/tools/create_listing_file.php index 88c5975a5..7e57ef752 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"; |