// BugFix - Changing error message "name is to long (32 chars max)" + Adding context to Tools::displayError()

This commit is contained in:
mDeflotte
2011-12-20 14:06:57 +00:00
parent e33326c990
commit 5b661db25d
4 changed files with 11 additions and 8 deletions
+4 -1
View File
@@ -633,7 +633,10 @@ class ToolsCore
public static function displayError($string = 'Fatal error', $htmlentities = true, Context $context = null)
{
global $_ERRORS;
if (is_null($context))
$context = Context::getContext();
@include_once(_PS_TRANSLATIONS_DIR_.$context->language->iso_code.'/errors.php');
if (defined('_PS_MODE_DEV_') AND _PS_MODE_DEV_ AND $string == 'Fatal error')