From b684289bb1bfca50048e2b5409683a173777135d Mon Sep 17 00:00:00 2001 From: natec Date: Mon, 16 Apr 2001 20:42:20 +0000 Subject: [PATCH] Interim fix for template data destruction git-svn-id: file:///svn/phpbb/trunk@167 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/template.inc | 9 +++++++++ 1 file changed, 9 insertions(+) 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. */