aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/common.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/common.php')
-rw-r--r--phpBB/common.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/common.php b/phpBB/common.php
index a6ae7dff75..46f78a7926 100644
--- a/phpBB/common.php
+++ b/phpBB/common.php
@@ -209,7 +209,6 @@ $class_loader->set_cache($cache->get_driver());
$request = new phpbb_request();
$user = new user();
$auth = new auth();
-$template = new phpbb_template();
$db = new $sql_db();
// make sure request_var uses this request instance
@@ -226,6 +225,8 @@ $config = new phpbb_config_db($db, $cache->get_driver(), CONFIG_TABLE);
set_config(null, null, null, $config);
set_config_count(null, null, null, $config);
+$template = new phpbb_template($phpbb_root_path, $phpEx, $config, $user);
+
// Add own hook handler
require($phpbb_root_path . 'includes/hooks/index.' . $phpEx);
$phpbb_hook = new phpbb_hook(array('exit_handler', 'phpbb_user_session_handler', 'append_sid', array('template', 'display')));