From e9fa1626d440d82ad19e6a61ea8d634c17a05fec Mon Sep 17 00:00:00 2001 From: acydburn Date: Thu, 22 Jan 2009 12:48:38 +0000 Subject: [PATCH] Add proper language to error messages git-svn-id: http://code.phpbb.com/svn/phpbb/trunk@9293 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index e304edee0..9473f823e 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -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); -- 2.11.4.GIT