Prevent show Disqus in page not found
This commit is contained in:
parent
a1bb333153
commit
237d28d396
|
@ -55,8 +55,14 @@ class pluginDisqus extends Plugin {
|
|||
|
||||
public function pageEnd()
|
||||
{
|
||||
global $url;
|
||||
global $WHERE_AM_I;
|
||||
|
||||
// Do not shows
|
||||
if ($url->notFound()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($WHERE_AM_I==='page') {
|
||||
global $page;
|
||||
if ($page->published() && $this->getValue('enablePages')) {
|
||||
|
|
Loading…
Reference in New Issue