aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/template/template.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/template/template.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/template/template.php')
-rw-r--r--phpBB/includes/template/template.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/template/template.php b/phpBB/includes/template/template.php
index b7c3e00dee..7703cfc278 100644
--- a/phpBB/includes/template/template.php
+++ b/phpBB/includes/template/template.php
@@ -36,7 +36,7 @@ class phpbb_template
* Stores template data used during template rendering.
* @var phpbb_template_context
*/
- public $context;
+ private $context;
/**
* Path of the cache directory for the template
@@ -95,6 +95,7 @@ class phpbb_template
$this->user = $user;
$this->locator = $locator;
$this->template_path = $this->locator->template_path;
+ $this->context = new phpbb_template_context();
}
/**