mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix #615 SEO compatibility with third-party modules using their own $oDocument
This commit is contained in:
parent
b257ef2b83
commit
eb467b5799
1 changed files with 1 additions and 1 deletions
|
|
@ -403,7 +403,7 @@ class HTMLDisplayHandler
|
|||
if ($document_srl)
|
||||
{
|
||||
$oDocument = Context::get('oDocument') ?: getModel('document')->getDocument($document_srl, false, false);
|
||||
if ($oDocument instanceof documentItem && $oDocument->document_srl == $document_srl && !$oDocument->isSecret())
|
||||
if (is_object($oDocument) && $oDocument->document_srl == $document_srl && (!method_exists($oDocument, 'isSecret') || !$oDocument->isSecret()))
|
||||
{
|
||||
$page_type = 'article';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue