From f3726fe3593a5853d4e38ab05448fa4b4dcdb248 Mon Sep 17 00:00:00 2001 From: vSchoener Date: Wed, 23 May 2012 08:19:32 +0000 Subject: [PATCH] [-] BO : Update assign value --- admin-dev/themes/default/template/controllers/modules/js.tpl | 2 +- controllers/admin/AdminModulesController.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/modules/js.tpl b/admin-dev/themes/default/template/controllers/modules/js.tpl index aa6d62c31..bcd100b7d 100644 --- a/admin-dev/themes/default/template/controllers/modules/js.tpl +++ b/admin-dev/themes/default/template/controllers/modules/js.tpl @@ -361,7 +361,7 @@ }, error: function(xhr, ajaxOptions, thrownError) { - //jAlert("TECHNICAL ERROR"+res); + //jAlert("TECHNICAL ERROR"+xhr); } }); } diff --git a/controllers/admin/AdminModulesController.php b/controllers/admin/AdminModulesController.php index 7cd2062f0..c05c6af35 100644 --- a/controllers/admin/AdminModulesController.php +++ b/controllers/admin/AdminModulesController.php @@ -372,7 +372,7 @@ class AdminModulesControllerCore extends AdminController { if (($list = Tools::getValue('modules_list')) && is_array($list)) foreach ($list as $id) - if ($obj = Module::getInstanceById($id) && (isset($obj->module_key))) + if (($obj = Module::getInstanceById($id)) && (isset($obj->module_key))) $this->sendStatisticRequest($obj->module_key); die(); } @@ -1058,7 +1058,7 @@ class AdminModulesControllerCore extends AdminController // When the XML cache file is up-to-date, the module may not be loaded yet if (!class_exists($module->name)) require_once(_PS_MODULE_DIR_.$module->name.'/'.$module->name.'.php'); - if ($object = new $module->name) + if ($object = new $module->name()) { $object->runUpgradeModule(); if ((count($errors_module_list = $object->getErrors())))