Improves, Disqus plugin

This commit is contained in:
dignajar 2016-02-06 18:05:58 -03:00
parent 7cdb2dd7f4
commit f410f12d16
2 changed files with 7 additions and 6 deletions

View File

@ -32,10 +32,6 @@ class pluginDisqus extends Plugin {
{
$this->enable = true;
}
if(!$Url->notFound()) {
$this->enable = false;
}
}
public function form()
@ -76,7 +72,12 @@ class pluginDisqus extends Plugin {
public function pageEnd()
{
if( $this->enable ) {
global $Url;
// Bludit check not-found page after the plugin method construct.
// It's necesary check here the page not-found.
if( $this->enable && !$Url->notFound()) {
return '<div id="disqus_thread"></div>';
}

View File

@ -37,4 +37,4 @@ if($Url->whereAmI()==='admin') {
// Site
else {
require(PATH_BOOT.'site.php');
}
}