Add proper language to error messages

git-svn-id: file:///svn/phpbb/trunk@9293 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2009-01-22 12:48:38 +00:00
parent f245579adf
commit e9f2f841f6

View file

@ -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);