mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-04 07:34:09 +01:00
* [MOD] Show translated messages when some errors are thrown
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user