aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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