قرینه از
https://github.com/matomo-org/matomo.git
synced 2025-08-22 06:57:53 +00:00

* 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
18 خطوط
415 B
PHP
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');
|
|
}
|
|
}),
|
|
],
|
|
]),
|
|
];
|