From 1819f564b52136ef46edb4c18817a39702e6c2fc Mon Sep 17 00:00:00 2001 From: dairiki Date: Thu, 24 Jan 2002 21:22:24 +0000 Subject: [PATCH] Restore Template::getExpansion() method, as it's needed by loadsave.php. git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@1552 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/Template.php | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/lib/Template.php b/lib/Template.php index b42ab446e..3f593fe1e 100644 --- a/lib/Template.php +++ b/lib/Template.php @@ -1,4 +1,4 @@ -popErrorHandler(); } - function printXML () { - $this->printExpansion(); - } - - function asXML () { + function getExpansion ($defaults = false) { ob_start(); - $this->printXML(); + $this->printExpansion($defaults); $xml = ob_get_contents(); ob_end_clean(); return $xml; } + function printXML () { + $this->printExpansion(); + } + + function asXML () { + return $this->getExpansion(); + } + + // Debugging: function _dump_template () { $lines = explode("\n", $this->_munge_input($this->_tmpl)); -- 2.45.0