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:
authormattab <matthieu.aubry@gmail.com>2013-04-05 07:49:58 +0400
committermattab <matthieu.aubry@gmail.com>2013-04-05 07:49:58 +0400
commitd88521348b5c679a767c322d7edb9e24f929e5c4 (patch)
treeb00c47292f6540bde4e8fc3893f634ac64ee4941 /plugins/MultiSites
parent99b0b245be4c7901d8aac2c6c07ed76de1268554 (diff)
Fixes #3786 Little hack for Piwik Mobile. You can now pass &enhanced=1 and it will return more metrics + will _not_ remove the websites without visits
Diffstat (limited to 'plugins/MultiSites')
-rwxr-xr-xplugins/MultiSites/API.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/MultiSites/API.php b/plugins/MultiSites/API.php
index 2277291598..72de40f5e8 100755
--- a/plugins/MultiSites/API.php
+++ b/plugins/MultiSites/API.php
@@ -281,7 +281,9 @@ class Piwik_MultiSites_API
// filter rows without visits
// note: if only one website is queried and there are no visits, we can not remove the row otherwise Piwik_API_ResponseBuilder throws 'Call to a member function getColumns() on a non-object'
- if ($multipleWebsitesRequested) {
+ if ($multipleWebsitesRequested
+ // We don't delete the 0 visits row, if "Enhanced" mode is on.
+ && !$enhanced) {
$dataTable->filter(
'ColumnCallbackDeleteRow',
array(