Update plugin.php

This commit is contained in:
Diego Najar 2018-09-27 15:46:59 +02:00 committed by GitHub
parent b921662fd8
commit b4caeb435a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class pluginDisqus extends Plugin {
if ( !$url->notFound() && if ( !$url->notFound() &&
( $url->whereAmI()=='page' && ( $url->whereAmI()=='page' &&
(($this->getValue('enablePosts') && $page->published()) || (($this->getValue('enablePosts') && $page->published()) ||
($this->getValue('enablePages') && $page->static())) ($this->getValue('enablePages') && $page->isStatic()))
) && ) &&
$page->allowComments() ) { $page->allowComments() ) {
$html = '<div id="disqus_thread"></div>'; $html = '<div id="disqus_thread"></div>';