mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Fix undefined variables in article page
This commit is contained in:
parent
6928abbe2c
commit
861135bd6c
4 changed files with 8 additions and 12 deletions
|
|
@ -1,2 +1,2 @@
|
|||
<h1 cond="$module_info->display_mobile_title != 'hide'">{$oDocument->getTitle()}</h1>
|
||||
{$oDocument->getContent($module_info->display_popupmenu != 'hide')}
|
||||
<h1 cond="($module_info->display_mobile_title ?? '') !== 'hide'">{$oDocument->getTitle()}</h1>
|
||||
{$oDocument->getContent(($module_info->display_popupmenu ?? '') !== 'hide')}
|
||||
|
|
|
|||
|
|
@ -7,10 +7,8 @@ class PageMobile extends PageView
|
|||
{
|
||||
$oTemplate = &TemplateHandler::getInstance();
|
||||
|
||||
$oDocumentModel = getModel('document');
|
||||
$oDocument = $oDocumentModel->getDocument(0);
|
||||
|
||||
if($this->module_info->mdocument_srl)
|
||||
$oDocument = DocumentModel::getDocument(0);
|
||||
if($this->module_info->mdocument_srl ?? 0)
|
||||
{
|
||||
$document_srl = $this->module_info->mdocument_srl;
|
||||
$oDocument->setDocument($document_srl);
|
||||
|
|
|
|||
|
|
@ -143,10 +143,8 @@ class PageView extends Page
|
|||
{
|
||||
$oTemplate = &TemplateHandler::getInstance();
|
||||
|
||||
$oDocumentModel = getModel('document');
|
||||
$oDocument = $oDocumentModel->getDocument(0);
|
||||
|
||||
if($this->module_info->document_srl)
|
||||
$oDocument = DocumentModel::getDocument(0);
|
||||
if($this->module_info->document_srl ?? 0)
|
||||
{
|
||||
$document_srl = $this->module_info->document_srl;
|
||||
$oDocument->setDocument($document_srl);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<block cond="$oDocument">
|
||||
<h1 cond="$module_info->display_title != 'hide'">{$oDocument->getTitle()}</h1>
|
||||
{$oDocument->getContent($module_info->display_popupmenu != 'hide')}
|
||||
<h1 cond="($module_info->display_title ?? '') !== 'hide'">{$oDocument->getTitle()}</h1>
|
||||
{$oDocument->getContent(($module_info->display_popupmenu ?? '') !== 'hide')}
|
||||
</block>
|
||||
<block cond="!$oDocument">
|
||||
{$lang->none_content}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue