aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/includes/template.inc9
1 files changed, 9 insertions, 0 deletions
diff --git a/phpBB/includes/template.inc b/phpBB/includes/template.inc
index fd25a0cbfb..def8b5ba39 100644
--- a/phpBB/includes/template.inc
+++ b/phpBB/includes/template.inc
@@ -67,6 +67,15 @@ class Template {
$this->set_rootdir($root);
}
+ /**
+ * Destroys this template object. Should be called when you're done with it, in order
+ * to clear out the template data so you can load/parse a new template set.
+ */
+ function destroy()
+ {
+ $_tpldata = array();
+ }
+
/**
* Sets the template root directory for this Template object.
*/