mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
Optimize common code paths using Template class
This commit is contained in:
parent
8d3a332344
commit
6a2a2826ec
3 changed files with 8 additions and 8 deletions
|
|
@ -8,8 +8,8 @@ class RawDisplayHandler
|
|||
$tpl_file = $oModule->getTemplateFile();
|
||||
if ($tpl_path && $tpl_file)
|
||||
{
|
||||
$oTemplate = Rhymix\Framework\Template::getInstance();
|
||||
$output = $oTemplate->compile($tpl_path, $tpl_file);
|
||||
$oTemplate = new Rhymix\Framework\Template($tpl_path, $tpl_file);
|
||||
$output = $oTemplate->compile();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue