diff options
author | Oleg Pudeyev <oleg@bsdpower.com> | 2011-05-09 22:01:07 -0400 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2011-05-12 20:13:30 -0400 |
commit | df76885b11e56348f7fbe6274a6dbc727bb677ad (patch) | |
tree | ea99d97302bcbfac007a43273bf5ff4df85d6026 /phpBB/includes/template.php | |
parent | 0462ab3a4a5cea64699eaf4b2e9900e36d027e50 (diff) | |
download | forums-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.php | 9 |
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 |