aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2014-02-04 10:56:44 +0000
committermistic100 <mistic@piwigo.org>2014-02-04 10:56:44 +0000
commitf286327ad680a5321d7fa77314f0b44f4823eb31 (patch)
tree230b3b47bf3f41b9257f9379d013e87af48ebf5f /admin/include
parent446dd3e9c6c5d3423a96f4c3086a29f5ca9ab570 (diff)
*Fatal error*: Call to undefined method plugins::plugin_version_compare
replaced by safe_version_compare caused by r26998 git-svn-id: http://piwigo.org/svn/trunk@27156 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include')
-rw-r--r--admin/include/updates.class.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/admin/include/updates.class.php b/admin/include/updates.class.php
index 2ab70d2be..12f5c2223 100644
--- a/admin/include/updates.class.php
+++ b/admin/include/updates.class.php
@@ -178,7 +178,7 @@ class updates
{
$ext_info = $server_ext[$fs_ext['extension']];
- if (!$this->version_compare($fs_ext['version'], $ext_info['revision_name'], $type))
+ if (!safe_version_compare($fs_ext['version'], $ext_info['revision_name'], '>='))
{
if (in_array($ext_id, $conf['updates_ignored'][$type]))
{
@@ -207,7 +207,7 @@ class updates
foreach($this->$type->$fs as $ext_id => $fs_ext)
{
if (isset($_SESSION['extensions_need_update'][$type][$ext_id])
- and $this->version_compare($fs_ext['version'], $_SESSION['extensions_need_update'][$type][$ext_id], $type))
+ and safe_version_compare($fs_ext['version'], $_SESSION['extensions_need_update'][$type][$ext_id], '>='))
{
// Extension have been upgraded
$this->check_extensions();
@@ -256,13 +256,6 @@ class updates
}
}
- function version_compare($a, $b, $type)
- {
- $version_compare = rtrim($type, 's').'_version_compare';
-
- return $this->$type->$version_compare($a, $b);
- }
-
static function process_obsolete_list($file)
{
if (file_exists(PHPWG_ROOT_PATH.$file)