mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-30 21:44:06 +02:00
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
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user