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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11409 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mDeflotte
2011-12-20 14:06:57 +00:00
parent 59fd81a2e2
commit daa8c7f8c9
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')