From 0a396bc44e0dff4c26e252b1faf670489b21bef5 Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 6 Feb 2017 12:23:42 -0800 Subject: [PATCH] Fixes #2387 - update alerts on plugins. --- e107_handlers/plugin_class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/e107_handlers/plugin_class.php b/e107_handlers/plugin_class.php index 52f7b8ae3..e8d2e3c72 100644 --- a/e107_handlers/plugin_class.php +++ b/e107_handlers/plugin_class.php @@ -903,8 +903,11 @@ class e107plugin } } - $curVal = floatval($version); + // $curVal = floatval($version); + $curVal = $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. {