Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@googlemail.com>2014-10-31 03:52:38 +0300
committerThomas Steur <thomas.steur@googlemail.com>2014-10-31 03:52:52 +0300
commit546de731281873c9f29c1c82f2e06187d9176812 (patch)
tree838a0111c99cd49b885353022edb8db215539f12 /plugins/Actions/Reports
parent2c525d3551a097014391b5399a6459a8c3d61e10 (diff)
refs #6511 fix signature of both methods was not the same
Diffstat (limited to 'plugins/Actions/Reports')
-rw-r--r--plugins/Actions/Reports/GetSiteSearchCategories.php4
-rw-r--r--plugins/Actions/Reports/SiteSearchBase.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Actions/Reports/GetSiteSearchCategories.php b/plugins/Actions/Reports/GetSiteSearchCategories.php
index e78590c074..6d41e3c334 100644
--- a/plugins/Actions/Reports/GetSiteSearchCategories.php
+++ b/plugins/Actions/Reports/GetSiteSearchCategories.php
@@ -27,9 +27,9 @@ class GetSiteSearchCategories extends SiteSearchBase
$this->widgetTitle = 'Actions_WidgetSearchCategories';
}
- protected function isEnabledForIdSites($idSites)
+ protected function isEnabledForIdSites($idSites, $idSite)
{
- return parent::isEnabledForIdSites($idSites) && Actions::isCustomVariablesPluginsEnabled();
+ return parent::isEnabledForIdSites($idSites, $idSite) && Actions::isCustomVariablesPluginsEnabled();
}
public function getMetrics()
diff --git a/plugins/Actions/Reports/SiteSearchBase.php b/plugins/Actions/Reports/SiteSearchBase.php
index 5b958f442d..942710b792 100644
--- a/plugins/Actions/Reports/SiteSearchBase.php
+++ b/plugins/Actions/Reports/SiteSearchBase.php
@@ -29,7 +29,7 @@ abstract class SiteSearchBase extends Base
return $this->isEnabledForIdSites($idSites, $idSite);
}
- protected function isEnabledForIdSites($idSites, $idSite = 0)
+ protected function isEnabledForIdSites($idSites, $idSite)
{
$actions = new Actions();
return $actions->isSiteSearchEnabled($idSites, $idSite);
@@ -39,7 +39,7 @@ abstract class SiteSearchBase extends Base
{
$idSites = !empty($infos['idSites']) ? $infos['idSites'] : array();
- if (!$this->isEnabledForIdSites($idSites)) {
+ if (!$this->isEnabledForIdSites($idSites, 0)) {
return;
}