mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-12 05:22:35 +09:00
Fix template path error in mobile document page #2679
This commit is contained in:
parent
a53e293a5a
commit
37b23341be
1 changed files with 4 additions and 3 deletions
|
|
@ -19,16 +19,17 @@ class PageMobile extends PageView
|
||||||
Context::set('document_srl', $document_srl);
|
Context::set('document_srl', $document_srl);
|
||||||
}
|
}
|
||||||
Context::set('oDocument', $oDocument);
|
Context::set('oDocument', $oDocument);
|
||||||
|
Context::set('page_content', $oDocument->getContent(false, false));
|
||||||
|
|
||||||
$oTemplate = Rhymix\Framework\Template::getInstance();
|
$oTemplate = Rhymix\Framework\Template::getInstance();
|
||||||
$template_path = $this->getTemplatePath();
|
$template_path = $this->getTemplatePath() ?: ($this->module_path . 'tpl');
|
||||||
if (preg_match('!/skins/!', $template_path))
|
if (preg_match('!/skins/!', $template_path))
|
||||||
{
|
{
|
||||||
$page_content = $oTemplate->compile($this->getTemplatePath(), 'content');
|
$page_content = $oTemplate->compile($template_path, 'content');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$page_content = $oTemplate->compile($this->getTemplatePath(), 'mobile');
|
$page_content = $oTemplate->compile($template_path, 'mobile');
|
||||||
}
|
}
|
||||||
|
|
||||||
return $page_content;
|
return $page_content;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue