mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-13 23:42:13 +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
|
|
@ -94,8 +94,8 @@ class HTMLDisplayHandler
|
|||
}
|
||||
}
|
||||
|
||||
$oTemplate = new Rhymix\Framework\Template;
|
||||
$output = $oTemplate->compile($template_path, $template_file);
|
||||
$oTemplate = new Rhymix\Framework\Template($template_path, $template_file);
|
||||
$output = $oTemplate->compile();
|
||||
|
||||
// add .x div for adminitration pages
|
||||
if(Context::getResponseMethod() == 'HTML')
|
||||
|
|
@ -300,8 +300,8 @@ class HTMLDisplayHandler
|
|||
{
|
||||
$this->_loadDesktopJSCSS();
|
||||
}
|
||||
$oTemplate = new Rhymix\Framework\Template;
|
||||
$output = $oTemplate->compile('./common/tpl', 'common_layout');
|
||||
$oTemplate = new Rhymix\Framework\Template('./common/tpl', 'common_layout');
|
||||
$output = $oTemplate->compile();
|
||||
|
||||
// replace the user-defined-language
|
||||
$output = Context::replaceUserLang($output);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue