[-] BO : error message on install module

This commit is contained in:
vAugagneur
2013-02-05 09:41:34 +01:00
74 changed files with 898 additions and 882 deletions

View File

@@ -189,7 +189,10 @@ abstract class ModuleCore
{
// Check module name validation
if (!Validate::isModuleName($this->name))
die(Tools::displayError());
{
$this->_errors[] = $this->l('Unable to install the module (Module name is not valid).');
return false;
}
// Check PS version compliancy
if (version_compare(_PS_VERSION_, $this->ps_versions_compliancy['min']) < 0 || version_compare(_PS_VERSION_, $this->ps_versions_compliancy['max']) >= 0)