1
0
قرینه از https://github.com/matomo-org/matomo.git synced 2025-08-22 06:57:53 +00:00
Files
matomo/plugins/MultiSites/config/ui-test.php
Stefan Giehl fc2f209bbf Use unformatted / raw data for new All Websites dashboard (#22751)
* Migrate NumberFormatter to vue.js

* Migrate getFormattedEvolution to new NumberFormatter

* Adjust MultiSites API to use better metric names for previous period data and add them to totals

* Use unformatted API data in new all websites dashboard

* Remove no longer needed API metric nb_visits_lastdate

* updates expected test files

* Adds Changelog

* remove no longer needed js number formatter

* apply review feedback

* respect ratio in evolution calculation
2024-11-21 12:06:20 +01:00

18 خطوط
415 B
PHP

<?php
use Piwik\Container\StaticContainer;
use Piwik\DI;
return [
'observers.global' => DI::add([
[
'API.MultiSites.getAllWithGroups',
DI::value(function (&$parameters) {
if (StaticContainer::get('test.vars.forceMultiSitesDashboardFailure')) {
throw new Exception('Forced API error');
}
}),
],
]),
];