// Handle fatal error in modules (after an upgrade for example)

This commit is contained in:
Damien Metzger
2012-12-13 19:06:10 +01:00
parent e7e156c261
commit be5b678f85
2 changed files with 9 additions and 0 deletions
+7
View File
@@ -71,6 +71,13 @@ function bqSQL($string)
return str_replace('`', '\`', pSQL($string));
}
function displayFatalError()
{
$error = error_get_last();
if ($error !== NULL)
echo '[PrestaShop] Fatal error in module '.substr(basename($error['file']), 0, -4).':<br />'.$error['message'];
}
/**
* @deprecated
*/