قرینه از
https://github.com/matomo-org/matomo.git
synced 2025-08-23 23:47:37 +00:00

* Disable autosanitize for MultiSites API * Add proper type hints accross MultiSites plugin * cs/ws * Replace Common::getRequestVar with Request class methods * some more type hints * simplify table filter * updates expected UI test file * clean up more code & bring code to phpstan lvl 5 * Add tooltips to table header * small code improvements
28 خطوط
720 B
PHP
28 خطوط
720 B
PHP
<?php
|
|
|
|
/**
|
|
* Matomo - free/libre analytics platform
|
|
*
|
|
* @link https://matomo.org
|
|
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
|
*/
|
|
|
|
namespace Piwik\Plugins\MultiSites;
|
|
|
|
use Piwik\Menu\MenuTop;
|
|
use Piwik\Piwik;
|
|
use Piwik\Request;
|
|
|
|
class Menu extends \Piwik\Plugin\Menu
|
|
{
|
|
public function configureTopMenu(MenuTop $menu)
|
|
{
|
|
$idSite = Request::fromRequest()->getIntegerParameter('idSite', 0);
|
|
|
|
$urlParams = $this->urlForActionWithDefaultUserParams('index', ['segment' => false, 'idSite' => $idSite ?: false]);
|
|
$tooltip = Piwik::translate('MultiSites_TopLinkTooltip');
|
|
|
|
$menu->addItem('General_MultiSitesSummary', null, $urlParams, 3, $tooltip);
|
|
}
|
|
}
|