// small fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17781 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
e8f0c50c21
commit
302f7e7602
1 file changed
+12
-7
@@ -1001,16 +1001,21 @@ class AdminModulesControllerCore extends AdminController
|
|||||||
}
|
}
|
||||||
// Module can't be upgraded if not file exist but can change the database version...
|
// Module can't be upgraded if not file exist but can change the database version...
|
||||||
// User has to be prevented
|
// User has to be prevented
|
||||||
else if (Module::getUpgradeStatus($module->name))
|
elseif (Module::getUpgradeStatus($module->name))
|
||||||
{
|
{
|
||||||
// When the XML cache file is up-to-date, the module may not be loaded yet
|
// When the XML cache file is up-to-date, the module may not be loaded yet
|
||||||
if (!class_exists($module->name))
|
if (!class_exists($module->name))
|
||||||
require_once(_PS_MODULE_DIR_.$module->name.'/'.$module->name.'.php');
|
if (file_exists(_PS_MODULE_DIR_.$module->name.'/'.$module->name.'.php'))
|
||||||
$object = new $module->name();
|
{
|
||||||
$module_success[] = array('name' => $module->name, 'message' => array(
|
require_once(_PS_MODULE_DIR_.$module->name.'/'.$module->name.'.php');
|
||||||
0 => $this->l('Current version:').$object->version,
|
$object = new $module->name();
|
||||||
1 => $this->l('No file upgrades applied (none exist)'))
|
$module_success[] = array('name' => $module->name, 'message' => array(
|
||||||
);
|
0 => $this->l('Current version:').$object->version,
|
||||||
|
1 => $this->l('No file upgrades applied (none exist)'))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
continue;
|
||||||
unset($object);
|
unset($object);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user