aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/template.php
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2011-05-09 22:01:07 -0400
committerOleg Pudeyev <oleg@bsdpower.com>2011-05-12 20:13:30 -0400
commitdf76885b11e56348f7fbe6274a6dbc727bb677ad (patch)
treeea99d97302bcbfac007a43273bf5ff4df85d6026 /phpBB/includes/template.php
parent0462ab3a4a5cea64699eaf4b2e9900e36d027e50 (diff)
downloadforums-df76885b11e56348f7fbe6274a6dbc727bb677ad.tar
forums-df76885b11e56348f7fbe6274a6dbc727bb677ad.tar.gz
forums-df76885b11e56348f7fbe6274a6dbc727bb677ad.tar.bz2
forums-df76885b11e56348f7fbe6274a6dbc727bb677ad.tar.xz
forums-df76885b11e56348f7fbe6274a6dbc727bb677ad.zip
[feature/template-engine] Reinstate phpbb_template#destroy function.
PHPBB3-9726
Diffstat (limited to 'phpBB/includes/template.php')
-rw-r--r--phpBB/includes/template.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/phpBB/includes/template.php b/phpBB/includes/template.php
index f27d0c7560..c03b87b13c 100644
--- a/phpBB/includes/template.php
+++ b/phpBB/includes/template.php
@@ -168,6 +168,15 @@ class phpbb_template
}
/**
+ * Clears all variables and blocks assigned to this template.
+ * @access public
+ */
+ public function destroy()
+ {
+ $this->_context->clear();
+ }
+
+ /**
* Reset/empty complete block
* @access public
* @param string $blockname Name of block to destroy