* [MOD] Show translated messages when some errors are thrown

This commit is contained in:
nuxsmin
2017-02-14 17:53:47 +01:00
parent d5f7c1513f
commit 7d64b83655

View File

@@ -322,7 +322,7 @@ class Init
SessionUtil::cleanSession();
$Tpl = new Template();
$Tpl->append('errors', ['type' => SPException::SP_CRITICAL, 'description' => $message, 'hint' => $hint]);
$Tpl->append('errors', ['type' => SPException::SP_CRITICAL, 'description' => __($message), 'hint' => __($hint)]);
$Controller = new MainController($Tpl, 'error', !Checks::isAjax());
$Controller->getError();