diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2018-12-19 02:32:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-19 02:32:44 +0300 |
commit | 0a2d0ea1ede1024f5a556cf5e776e5033c1d1308 (patch) | |
tree | 0a3b182dabaa6dff6fde26c4b86fc068f6e5f4f0 /plugins/CoreHome/Columns | |
parent | 64802cc8aa740aac489355f422415e716e20ae87 (diff) |
Use Request::processRequest in UserId::isUsedInSite. (#13875)
* Use Request::processRequest in UserId::isUsedInSite.
* Make sure segment is not set.
Diffstat (limited to 'plugins/CoreHome/Columns')
-rw-r--r-- | plugins/CoreHome/Columns/UserId.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/CoreHome/Columns/UserId.php b/plugins/CoreHome/Columns/UserId.php index c5423ae93a..8911ee8349 100644 --- a/plugins/CoreHome/Columns/UserId.php +++ b/plugins/CoreHome/Columns/UserId.php @@ -98,7 +98,13 @@ class UserId extends VisitDimension private function isUsedInSite($idSite, $period, $date) { - $result = VisitsSummaryApi::getInstance()->get($idSite, $period, $date, false, 'nb_users'); + $result = \Piwik\API\Request::processRequest('VisitsSummary.get', [ + 'columns' => 'nb_users', + 'idSite' => $idSite, + 'period' => $period, + 'date' => $date, + 'segment' => false, + ], $default = []); return $this->hasDataTableUsers($result); } |