Prevent show Disqus in page not found

This commit is contained in:
Diego Najar 2019-05-28 21:04:15 +02:00
parent a1bb333153
commit 237d28d396
1 changed files with 6 additions and 0 deletions

View File

@ -55,8 +55,14 @@ class pluginDisqus extends Plugin {
public function pageEnd() public function pageEnd()
{ {
global $url;
global $WHERE_AM_I; global $WHERE_AM_I;
// Do not shows
if ($url->notFound()) {
return false;
}
if ($WHERE_AM_I==='page') { if ($WHERE_AM_I==='page') {
global $page; global $page;
if ($page->published() && $this->getValue('enablePages')) { if ($page->published() && $this->getValue('enablePages')) {