From 12188f47859b58c9a4bac88143c04c90b01cb328 Mon Sep 17 00:00:00 2001 From: nbm Date: Fri, 10 Mar 2006 10:54:53 +0000 Subject: [PATCH] Avoid spurious warning with error_reporting(ALL) on. --- lib/templating/templating.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/templating/templating.inc.php b/lib/templating/templating.inc.php index a98e77a..6512be0 100644 --- a/lib/templating/templating.inc.php +++ b/lib/templating/templating.inc.php @@ -94,7 +94,8 @@ class KTTemplating { return PEAR::raiseError("Could not find template language"); } - return new $sClass($sTemplatePath); + $oTemplate =& new $sClass($sTemplatePath); + return $oTemplate; } // }}} -- libgit2 0.21.4