diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-07-14 17:30:21 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-07-14 17:30:21 +0000 |
commit | 5a3a3f56ad8c1ee5575e5417c74603db12c915ea (patch) | |
tree | 7f708e1efc4f80e40a16a848e0a1da5ec4e3bfef /phpBB/includes/functions.php | |
parent | b88ce0ce5a9657f3ac77914a6de58f3a2d5ab340 (diff) | |
download | forums-5a3a3f56ad8c1ee5575e5417c74603db12c915ea.tar forums-5a3a3f56ad8c1ee5575e5417c74603db12c915ea.tar.gz forums-5a3a3f56ad8c1ee5575e5417c74603db12c915ea.tar.bz2 forums-5a3a3f56ad8c1ee5575e5417c74603db12c915ea.tar.xz forums-5a3a3f56ad8c1ee5575e5417c74603db12c915ea.zip |
Template config system, store relevant config stuff here
git-svn-id: file:///svn/phpbb/trunk@661 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 5608b2f252..ac4aed3dd9 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, $phpbb_root_path; + global $board_config, $theme, $images, $template, $lang, $phpEx, $phpbb_root_path; if(!$board_config['override_user_themes']) { @@ -272,6 +272,17 @@ function init_userprefs($userdata) $template = new Template($phpbb_root_path . "templates/" . $board_config['default_template']); + if($template) + { + @include($phpbb_root_path . "templates/" . $board_config['default_template'] . "/" . $board_config['default_template'] . ".cfg"); + + if( !defined("TEMPLATE_CONFIG") ) + { + message_die(CRITICAL_MESSAGE, "Couldn't open " . $board_config['default_template'] . " template config file"); + } + + } + if(file_exists("language/lang_".$board_config['default_lang'].".".$phpEx) ) { include($phpbb_root_path . 'language/lang_'.$board_config['default_lang'].'.'.$phpEx); |