aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/style/style.php
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2012-06-11 23:11:04 -0400
committerOleg Pudeyev <oleg@bsdpower.com>2012-11-02 18:03:52 -0400
commit8528d8ff34986b7ff725a3798e0bc52096728a32 (patch)
tree27ee0a6fbd4c4bc85261526eaa2e8f0d500590ea /phpBB/includes/style/style.php
parent000bbfd5b342627b103d7c460864d4dad0dc8134 (diff)
downloadforums-8528d8ff34986b7ff725a3798e0bc52096728a32.tar
forums-8528d8ff34986b7ff725a3798e0bc52096728a32.tar.gz
forums-8528d8ff34986b7ff725a3798e0bc52096728a32.tar.bz2
forums-8528d8ff34986b7ff725a3798e0bc52096728a32.tar.xz
forums-8528d8ff34986b7ff725a3798e0bc52096728a32.zip
[ticket/10933] Initialize template context when template is constructed.
There is no apparent reason for either initializing or clearing the context in set_style/set_custom_style. Initially the initialization there was added in 0501640d5db158a010741e27803191ab469834c4, for reasons that presently I do not see. This permits making context property back private. PHPBB3-10933
Diffstat (limited to 'phpBB/includes/style/style.php')
-rw-r--r--phpBB/includes/style/style.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/phpBB/includes/style/style.php b/phpBB/includes/style/style.php
index 6b7cd31cb3..36298b49ec 100644
--- a/phpBB/includes/style/style.php
+++ b/phpBB/includes/style/style.php
@@ -124,8 +124,6 @@ class phpbb_style
$this->template->cachepath = $this->phpbb_root_path . 'cache/tpl_' . str_replace('_', '-', $name) . '_';
- $this->template->context = new phpbb_template_context();
-
if ($template_path !== false)
{
$this->template->template_path = $this->locator->template_path = $template_path;