diff options
| author | natec <natec@users.sourceforge.net> | 2001-04-16 20:42:20 +0000 |
|---|---|---|
| committer | natec <natec@users.sourceforge.net> | 2001-04-16 20:42:20 +0000 |
| commit | b684289bb1bfca50048e2b5409683a173777135d (patch) | |
| tree | 27f26e3c804841d039901c48d872001aad865e1a /phpBB/includes | |
| parent | 8f097ef156fc541e8d4d0fcb8f90a17b60e30bfd (diff) | |
| download | forums-b684289bb1bfca50048e2b5409683a173777135d.tar forums-b684289bb1bfca50048e2b5409683a173777135d.tar.gz forums-b684289bb1bfca50048e2b5409683a173777135d.tar.bz2 forums-b684289bb1bfca50048e2b5409683a173777135d.tar.xz forums-b684289bb1bfca50048e2b5409683a173777135d.zip | |
Interim fix for template data destruction
git-svn-id: file:///svn/phpbb/trunk@167 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
| -rw-r--r-- | phpBB/includes/template.inc | 9 |
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. */ |
