aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2009-01-22 12:48:38 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2009-01-22 12:48:38 +0000
commite9f2f841f65123154581eb338256599d3356d82c (patch)
tree730ef20e5015a17dd742758cb0593b4bbb2f10d7 /phpBB
parentf245579adf90e41a0ccab2aba7d424cc45d16343 (diff)
downloadforums-e9f2f841f65123154581eb338256599d3356d82c.tar
forums-e9f2f841f65123154581eb338256599d3356d82c.tar.gz
forums-e9f2f841f65123154581eb338256599d3356d82c.tar.bz2
forums-e9f2f841f65123154581eb338256599d3356d82c.tar.xz
forums-e9f2f841f65123154581eb338256599d3356d82c.zip
Add proper language to error messages
git-svn-id: file:///svn/phpbb/trunk@9293 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/functions.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index e304edee0c..9473f823e4 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);