From bd4ca8222e24d47ca993d91a78deb1c6131ec4e5 Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Thu, 5 May 2016 13:50:47 +0200 Subject: [PATCH] Update plugin.php leave verification code for main page only --- bl-plugins/googletools/plugin.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/bl-plugins/googletools/plugin.php b/bl-plugins/googletools/plugin.php index e126af55..b8d8f9de 100644 --- a/bl-plugins/googletools/plugin.php +++ b/bl-plugins/googletools/plugin.php @@ -31,13 +31,15 @@ class pluginGoogleTools extends Plugin { public function siteHead() { - $html = PHP_EOL.''.PHP_EOL; - $html .= ''.PHP_EOL; + global $Url - if(Text::isEmpty($this->getDbField('google-site-verification'))) { + if(Text::isEmpty($this->getDbField('google-site-verification')) || !($Url->whereAmI()=='home')) { return false; } + $html = PHP_EOL.''.PHP_EOL; + $html .= ''.PHP_EOL; + return $html; } @@ -60,4 +62,4 @@ class pluginGoogleTools extends Plugin { return $html; } -} \ No newline at end of file +}