// 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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user