aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/functions/error.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/functions/error.php')
-rw-r--r--phpBB/functions/error.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/phpBB/functions/error.php b/phpBB/functions/error.php
index 1a21ab0023..5bb0b73000 100644
--- a/phpBB/functions/error.php
+++ b/phpBB/functions/error.php
@@ -24,10 +24,18 @@
function error_die($db, $error_code = "", $error_msg = "")
{
- global $template, $phpEx;
+ global $template, $phpEx, $default_lang;
if(!$template->get("overall_header"))
{
+ if(!empty($default_lang))
+ {
+ include('language/lang_'.$default_lang.'.'.$phpEx);
+ }
+ else
+ {
+ include('language/lang_english.'.$phpEx);
+ }
include('page_header.'.$phpEx);
}
if(!$error_msg)