mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Add proper language to error messages
git-svn-id: file:///svn/phpbb/trunk@9293 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
f245579adf
commit
e9f2f841f6
1 changed files with 6 additions and 0 deletions
|
@ -2076,6 +2076,12 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
|
|||
|
||||
if (phpbb::registered('user'))
|
||||
{
|
||||
// Setup language
|
||||
if (empty(phpbb::$user->lang))
|
||||
{
|
||||
phpbb::$user->setup();
|
||||
}
|
||||
|
||||
$msg_text = (!empty(phpbb::$user->lang[$msg_text])) ? phpbb::$user->lang[$msg_text] : $msg_text;
|
||||
$msg_title = (!isset($msg_title)) ? phpbb::$user->lang['GENERAL_ERROR'] : ((!empty(phpbb::$user->lang[$msg_title])) ? phpbb::$user->lang[$msg_title] : $msg_title);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue