Update plugin.php

This commit is contained in:
Max Kostikov 2017-10-19 12:35:10 +02:00 committed by GitHub
parent 6e66fc28a4
commit 613d6103a0
1 changed files with 3 additions and 3 deletions

View File

@ -49,9 +49,9 @@ class pluginDisqus extends Plugin {
} }
if ( !$Url->notFound() && if ( !$Url->notFound() &&
( ( $Url->whereAmI()=='page' &&
($this->getDbField('enablePosts') && $Page->status()=='published') || (($this->getDbField('enablePosts') && $Page->status()=='published') ||
($this->getDbField('enablePages') && $Page->status()=='static') ($this->getDbField('enablePages') && $Page->status()=='static'))
) && ) &&
$page->allowComments() ) { $page->allowComments() ) {
$html = '<div id="disqus_thread"></div>'; $html = '<div id="disqus_thread"></div>';