diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2016-12-09 06:19:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-09 06:19:21 +0300 |
commit | 8aec36a019c1687aee46faf33db368766843cca7 (patch) | |
tree | e853c4bb4f35d34f88150d3eb060b72eaef66040 /plugins/Marketplace/Api | |
parent | d530258efe4e3b9554c84eb98f6037867fffd55e (diff) |
fix marketplace might not search for plugins correctly (#10986)
Diffstat (limited to 'plugins/Marketplace/Api')
-rw-r--r-- | plugins/Marketplace/Api/Client.php | 3 | ||||
-rw-r--r-- | plugins/Marketplace/Api/Service.php | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/plugins/Marketplace/Api/Client.php b/plugins/Marketplace/Api/Client.php index 0b4589f33a..254587233d 100644 --- a/plugins/Marketplace/Api/Client.php +++ b/plugins/Marketplace/Api/Client.php @@ -12,6 +12,7 @@ use Piwik\Cache; use Piwik\Common; use Piwik\Container\StaticContainer; use Piwik\Filesystem; +use Piwik\Http; use Piwik\Plugin; use Piwik\Plugins\Marketplace\Environment; use Piwik\Plugins\Marketplace\Api\Service; @@ -272,7 +273,7 @@ class Client $params['num_users'] = $this->environment->getNumUsers(); $params['num_websites'] = $this->environment->getNumWebsites(); - $query = http_build_query($params); + $query = Http::buildQuery($params); $cacheId = $this->getCacheKey($action, $query); $result = $this->cache->fetch($cacheId); diff --git a/plugins/Marketplace/Api/Service.php b/plugins/Marketplace/Api/Service.php index e493b69941..7257d635d4 100644 --- a/plugins/Marketplace/Api/Service.php +++ b/plugins/Marketplace/Api/Service.php @@ -127,7 +127,7 @@ class Service { $endpoint = sprintf('%s/api/%s/', $this->domain, $this->version); - $query = http_build_query($params); + $query = Http::buildQuery($params); $url = sprintf('%s%s?%s', $endpoint, $action, $query); $response = $this->download($url); |