aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/message.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-07-13 16:14:37 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-07-13 16:14:37 +0000
commitea983410993371bcc63e1a120fe17bed964f5f08 (patch)
tree5bb1cc1bd365b04ba40aba256c9a4b82982a691e /phpBB/includes/message.php
parent79d57c449fc190ce693d2ecfdbb0dc36e8e82be7 (diff)
downloadforums-ea983410993371bcc63e1a120fe17bed964f5f08.tar
forums-ea983410993371bcc63e1a120fe17bed964f5f08.tar.gz
forums-ea983410993371bcc63e1a120fe17bed964f5f08.tar.bz2
forums-ea983410993371bcc63e1a120fe17bed964f5f08.tar.xz
forums-ea983410993371bcc63e1a120fe17bed964f5f08.zip
Changes to include location + some other misc stuff
git-svn-id: file:///svn/phpbb/trunk@646 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/message.php')
-rw-r--r--phpBB/includes/message.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/phpBB/includes/message.php b/phpBB/includes/message.php
index 1a0e1126d7..e097b34bf7 100644
--- a/phpBB/includes/message.php
+++ b/phpBB/includes/message.php
@@ -47,7 +47,7 @@
//
function message_die($msg_code, $msg_text = "", $msg_title = "", $err_line = "", $err_file = "", $sql = "")
{
- global $db, $template, $board_config, $theme, $lang, $phpEx;
+ global $db, $template, $board_config, $theme, $lang, $phpEx, $phpbb_root_path;
global $userdata, $user_ip, $session_length;
global $starttime;
@@ -64,16 +64,16 @@ function message_die($msg_code, $msg_text = "", $msg_title = "", $err_line = "",
{
if( !empty($board_config['default_lang']) )
{
- include('language/lang_' . $board_config['default_lang'] . '.'.$phpEx);
+ include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '.'.$phpEx);
}
else
{
- include('language/lang_english.'.$phpEx);
+ include($phpbb_root_path . 'language/lang_english.'.$phpEx);
}
if( empty($template) )
{
- $template = new Template("templates/Default");
+ $template = new Template($phpbb_root_path . "templates/Default");
}
if( empty($theme) )
@@ -84,7 +84,7 @@ function message_die($msg_code, $msg_text = "", $msg_title = "", $err_line = "",
//
// Load the Page Header
//
- include('includes/page_header.'.$phpEx);
+ include($phpbb_root_path . 'includes/page_header.'.$phpEx);
}
switch($msg_code)
@@ -119,7 +119,7 @@ function message_die($msg_code, $msg_text = "", $msg_title = "", $err_line = "",
// Critical errors mean we cannot rely on _ANY_ DB information being
// available so we're going to dump out a simple echo'd statement
//
- include('language/lang_english.'.$phpEx);
+ include($phpbb_root_path . 'language/lang_english.'.$phpEx);
if($msg_text == "")
{
@@ -176,7 +176,7 @@ function message_die($msg_code, $msg_text = "", $msg_title = "", $err_line = "",
);
$template->pparse("message_body");
- include('includes/page_tail.'.$phpEx);
+ include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
}
else
{