mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 23:07:39 +02: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:
@@ -2076,6 +2076,12 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
|
|||||||
|
|
||||||
if (phpbb::registered('user'))
|
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_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);
|
$msg_title = (!isset($msg_title)) ? phpbb::$user->lang['GENERAL_ERROR'] : ((!empty(phpbb::$user->lang[$msg_title])) ? phpbb::$user->lang[$msg_title] : $msg_title);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user