1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-07 15:16:30 +02:00

Fixes #2387 - update alerts on plugins.

This commit is contained in:
Cameron
2017-02-06 12:23:42 -08:00
parent bd6400d1bf
commit 0a396bc44e

View File

@@ -903,8 +903,11 @@ class e107plugin
} }
} }
$curVal = floatval($version); // $curVal = floatval($version);
$curVal = $version;
$fileVal = $plg->getVersion(); // floatval($data['@attributes']['version']); $fileVal = $plg->getVersion(); // floatval($data['@attributes']['version']);
// $fileVal = floatval($fileVal);
if($ret = $this->execute_function($path, 'upgrade', 'required', array($this, $curVal, $fileVal))) // Check {plugin}_setup.php and run a 'required' method, if true, then update is required. if($ret = $this->execute_function($path, 'upgrade', 'required', array($this, $curVal, $fileVal))) // Check {plugin}_setup.php and run a 'required' method, if true, then update is required.
{ {