// die2Exception

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9698 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mMarinetti
2011-10-28 08:49:21 +00:00
parent 4692f2c744
commit edbac35e4f

View File

@@ -714,7 +714,7 @@ abstract class ModuleCore
if (is_dir(_PS_MODULE_DIR_.$name) && Tools::file_exists_cache(_PS_MODULE_DIR_.$name.'/'.$name.'.php'))
{
if (!Validate::isModuleName($name))
die(Tools::displayError().' (Module '.$name.')');
throw new PrestashopException(sprintf('Module %s is not a valid module name', $name));
$moduleList[] = $name;
}
}