Update references to TemplateHandler in common code paths

This commit is contained in:
Kijin Sung 2023-10-10 15:05:46 +09:00
parent d46d25c69f
commit 45f016d53b
7 changed files with 9 additions and 11 deletions

View file

@ -49,7 +49,7 @@ class HTMLDisplayHandler
*/
public function toDoc(&$oModule)
{
$oTemplate = TemplateHandler::getInstance();
$oTemplate = Rhymix\Framework\Template::getInstance();
// SECISSUE https://github.com/xpressengine/xe-core/issues/1583
$oSecurity = new Security();
@ -291,7 +291,7 @@ class HTMLDisplayHandler
// convert the final layout
Context::set('content', $output);
$oTemplate = TemplateHandler::getInstance();
$oTemplate = Rhymix\Framework\Template::getInstance();
if(Mobile::isFromMobilePhone())
{
$this->_loadMobileJSCSS();

View file

@ -8,7 +8,7 @@ class RawDisplayHandler
$tpl_file = $oModule->getTemplateFile();
if ($tpl_path && $tpl_file)
{
$oTemplate = TemplateHandler::getInstance();
$oTemplate = Rhymix\Framework\Template::getInstance();
$output = $oTemplate->compile($tpl_path, $tpl_file);
}
else