aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/functions/error.php
diff options
context:
space:
mode:
authorJames Atkinson <thefinn@users.sourceforge.net>2001-03-04 01:27:58 +0000
committerJames Atkinson <thefinn@users.sourceforge.net>2001-03-04 01:27:58 +0000
commit9411996f4568b026d009ecd6426d2d7dec7bef1a (patch)
tree5fd298607fc4a4329b0911474cc42c16f3e828a1 /phpBB/functions/error.php
parente9aedae48fac38e7087514d4a863ff2b836378b3 (diff)
downloadforums-9411996f4568b026d009ecd6426d2d7dec7bef1a.tar
forums-9411996f4568b026d009ecd6426d2d7dec7bef1a.tar.gz
forums-9411996f4568b026d009ecd6426d2d7dec7bef1a.tar.bz2
forums-9411996f4568b026d009ecd6426d2d7dec7bef1a.tar.xz
forums-9411996f4568b026d009ecd6426d2d7dec7bef1a.zip
Misc fixes
git-svn-id: file:///svn/phpbb/trunk@80 89ea8834-ac86-4346-8a33-228a782c2dd0
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)