diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2013-09-24 09:32:43 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2013-09-24 09:32:43 +0400 |
commit | b6183241d5d217df2e547dda9e58792f8640ed85 (patch) | |
tree | 0de4b363b18c35afa7c487f84eded70a8935cee0 /plugins | |
parent | 2bde43c564d314bbefa2bd35db55e898e5652177 (diff) |
refs #4053 we need the core version in order to download the plugin
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/CorePluginsAdmin/MarketplaceApiClient.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/CorePluginsAdmin/MarketplaceApiClient.php b/plugins/CorePluginsAdmin/MarketplaceApiClient.php index dc7b3841a1..817015c2cc 100644 --- a/plugins/CorePluginsAdmin/MarketplaceApiClient.php +++ b/plugins/CorePluginsAdmin/MarketplaceApiClient.php @@ -11,7 +11,9 @@ namespace Piwik\Plugins\CorePluginsAdmin; use Piwik\CacheFile; use Piwik\Http; +use Piwik\Piwik; use Piwik\PluginsManager; +use Piwik\Version; /** * @@ -193,7 +195,7 @@ class MarketplaceApiClient $latestVersion = array_pop($plugin['versions']); $downloadUrl = $latestVersion['download']; - return $this->domain . $downloadUrl; + return $this->domain . $downloadUrl . '?coreVersion=' . Version::VERSION; } } |