aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.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/functions.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/functions.php')
-rw-r--r--phpBB/includes/functions.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 2402f5efca..50cd5af865 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -225,7 +225,7 @@ function make_forum_box($box_name, $default_forum = -1)
// Initialise user settings on page load
function init_userprefs($userdata)
{
- global $board_config, $theme, $template, $lang, $phpEx;
+ global $board_config, $theme, $template, $lang, $phpEx, $phpbb_root_path;
if(!$board_config['override_user_themes'])
{
@@ -270,15 +270,15 @@ function init_userprefs($userdata)
}
}
- $template = new Template("templates/" . $board_config['default_template']);
+ $template = new Template($phpbb_root_path . "templates/" . $board_config['default_template']);
if(file_exists("language/lang_".$board_config['default_lang'].".".$phpEx) )
{
- 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);
}
return;