mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-09 06:44:56 +02:00
use custom safe_version_compare instead of version_compare to handle versions numbers with letters
git-svn-id: http://piwigo.org/svn/trunk@26591 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -78,7 +78,7 @@ abstract class PluginMaintain
|
||||
$current_version = $pwg_loaded_plugins[$this->plugin_id]['version'];
|
||||
|
||||
if ( $version == 'auto' or $current_version == 'auto'
|
||||
or version_compare($current_version, $version, '<')
|
||||
or safe_version_compare($current_version, $version, '<')
|
||||
)
|
||||
{
|
||||
if (!empty($on_update))
|
||||
@@ -144,7 +144,7 @@ SELECT version
|
||||
list($current_version) = pwg_db_fetch_row(pwg_query($query));
|
||||
|
||||
if ( $version == 'auto' or $current_version == 'auto'
|
||||
or version_compare($current_version, $version, '<')
|
||||
or safe_version_compare($current_version, $version, '<')
|
||||
)
|
||||
{
|
||||
if (!empty($on_update))
|
||||
|
||||
Reference in New Issue
Block a user