diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-10-31 03:37:41 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-10-31 03:37:41 +0300 |
commit | 2c525d3551a097014391b5399a6459a8c3d61e10 (patch) | |
tree | fa6f1e208dd4c50125ffc8a7c3c541e9b9e6d0ab /plugins/Actions/Menu.php | |
parent | bca9fdab124fb27aa0a7c04da768011fba26589f (diff) |
refs #6511 this should fix sitesearch reports are not available in scheduled report as there was no siteid set
Diffstat (limited to 'plugins/Actions/Menu.php')
-rw-r--r-- | plugins/Actions/Menu.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/Actions/Menu.php b/plugins/Actions/Menu.php index e9ce436b75..9a7424b4e9 100644 --- a/plugins/Actions/Menu.php +++ b/plugins/Actions/Menu.php @@ -8,6 +8,7 @@ */ namespace Piwik\Plugins\Actions; +use Piwik\Common; use Piwik\Menu\MenuReporting; class Menu extends \Piwik\Plugin\Menu @@ -16,8 +17,11 @@ class Menu extends \Piwik\Plugin\Menu { $menu->addActionsItem('', $this->urlForAction('menuGetPageUrls'), 15); + $idSite = Common::getRequestVar('idSite', 0, 'int'); + $idSites = Common::getRequestVar('idSites', '', 'string'); + $actions = new Actions(); - if ($actions->isSiteSearchEnabled()) { + if ($actions->isSiteSearchEnabled($idSites, $idSite)) { $menu->addActionsItem('Actions_SubmenuSitesearch', $this->urlForAction('indexSiteSearch'), 5); } } |