Commit 12188f47859b58c9a4bac88143c04c90b01cb328
1 parent
b48e9d18
Avoid spurious warning with error_reporting(ALL) on.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5077 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
2 additions
and
1 deletions
lib/templating/templating.inc.php
| @@ -94,7 +94,8 @@ class KTTemplating { | @@ -94,7 +94,8 @@ class KTTemplating { | ||
| 94 | return PEAR::raiseError("Could not find template language"); | 94 | return PEAR::raiseError("Could not find template language"); |
| 95 | } | 95 | } |
| 96 | 96 | ||
| 97 | - return new $sClass($sTemplatePath); | 97 | + $oTemplate =& new $sClass($sTemplatePath); |
| 98 | + return $oTemplate; | ||
| 98 | } | 99 | } |
| 99 | // }}} | 100 | // }}} |
| 100 | 101 |