aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/common.php2
-rw-r--r--phpBB/includes/functions_messenger.php2
-rw-r--r--phpBB/includes/template.php9
-rw-r--r--phpBB/install/index.php2
-rw-r--r--tests/template/template_test.php2
5 files changed, 4 insertions, 13 deletions
diff --git a/phpBB/common.php b/phpBB/common.php
index ccd043ba70..a6ae7dff75 100644
--- a/phpBB/common.php
+++ b/phpBB/common.php
@@ -209,7 +209,7 @@ $class_loader->set_cache($cache->get_driver());
$request = new phpbb_request();
$user = new user();
$auth = new auth();
-$template = new template();
+$template = new phpbb_template();
$db = new $sql_db();
// make sure request_var uses this request instance
diff --git a/phpBB/includes/functions_messenger.php b/phpBB/includes/functions_messenger.php
index f5d102b1da..8255d4b148 100644
--- a/phpBB/includes/functions_messenger.php
+++ b/phpBB/includes/functions_messenger.php
@@ -193,7 +193,7 @@ class messenger
// tpl_msg now holds a template object we can use to parse the template file
if (!isset($this->tpl_msg[$template_lang . $template_file]))
{
- $this->tpl_msg[$template_lang . $template_file] = new template();
+ $this->tpl_msg[$template_lang . $template_file] = new phpbb_template();
$tpl = &$this->tpl_msg[$template_lang . $template_file];
$fallback_template_path = false;
diff --git a/phpBB/includes/template.php b/phpBB/includes/template.php
index dc461fb60e..2a32af406c 100644
--- a/phpBB/includes/template.php
+++ b/phpBB/includes/template.php
@@ -866,12 +866,3 @@ class phpbb_template
include($file);
}
}
-
-/**
- * @todo remove this
- *
- */
-class template extends phpbb_template
-{
- // dirty hack
-}
diff --git a/phpBB/install/index.php b/phpBB/install/index.php
index 3cbc8744dd..6618e42ae8 100644
--- a/phpBB/install/index.php
+++ b/phpBB/install/index.php
@@ -262,7 +262,7 @@ set_error_handler(defined('PHPBB_MSG_HANDLER') ? PHPBB_MSG_HANDLER : 'msg_handle
$user = new user();
$auth = new auth();
-$template = new template();
+$template = new phpbb_template();
// Add own hook handler, if present. :o
if (file_exists($phpbb_root_path . 'includes/hooks/index.' . $phpEx))
diff --git a/tests/template/template_test.php b/tests/template/template_test.php
index e530b0f4e6..5692fcf06f 100644
--- a/tests/template/template_test.php
+++ b/tests/template/template_test.php
@@ -33,7 +33,7 @@ class phpbb_template_template_test extends phpbb_test_case
private function setup_engine()
{
$this->template_path = dirname(__FILE__) . '/templates';
- $this->template = new template();
+ $this->template = new phpbb_template();
$this->template->set_custom_template($this->template_path, 'tests');
}