Commit 12188f47859b58c9a4bac88143c04c90b01cb328

Authored by nbm
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
lib/templating/templating.inc.php
... ... @@ -94,7 +94,8 @@ class KTTemplating {
94 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  
... ...