summaryrefslogtreecommitdiffstats
path: root/lib/private/app.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-06-29 11:15:56 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-06-29 12:14:07 +0200
commitae3d402dbc3c9620cea5b32bedc7f00874b12dd0 (patch)
tree8efd85897ad6ae4d138b4f191b31c4164ea9182e /lib/private/app.php
parentb55f71ee032a77105b823ee01653f39fe066977f (diff)
downloadnextcloud-server-ae3d402dbc3c9620cea5b32bedc7f00874b12dd0.tar.gz
nextcloud-server-ae3d402dbc3c9620cea5b32bedc7f00874b12dd0.zip
Send OC version to appstore so it can reply with the right links
Diffstat (limited to 'lib/private/app.php')
-rw-r--r--lib/private/app.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/private/app.php b/lib/private/app.php
index 4814561baec..c506be1799b 100644
--- a/lib/private/app.php
+++ b/lib/private/app.php
@@ -312,8 +312,8 @@ class OC_App {
\OC::$server->getConfig(),
\OC::$server->getLogger()
);
- $appData = $ocsClient->getApplication($app);
- $download= $ocsClient->getApplicationDownload($app);
+ $appData = $ocsClient->getApplication($app, \OC_Util::getVersion());
+ $download= $ocsClient->getApplicationDownload($app, \OC_Util::getVersion());
if(isset($download['downloadlink']) and $download['downloadlink']!='') {
// Replace spaces in download link without encoding entire URL
$download['downloadlink'] = str_replace(' ', '%20', $download['downloadlink']);
@@ -918,7 +918,7 @@ class OC_App {
if (is_null($category)) {
- $categoryNames = $ocsClient->getCategories();
+ $categoryNames = $ocsClient->getCategories(\OC_Util::getVersion());
if (is_array($categoryNames)) {
// Check that categories of apps were retrieved correctly
if (!$categories = array_keys($categoryNames)) {
@@ -930,7 +930,7 @@ class OC_App {
}
$page = 0;
- $remoteApps = $ocsClient->getApplications($categories, $page, $filter);
+ $remoteApps = $ocsClient->getApplications($categories, $page, $filter, \OC_Util::getVersion());
$apps = [];
$i = 0;
$l = \OC::$server->getL10N('core');
@@ -1088,7 +1088,7 @@ class OC_App {
$config,
\OC::$server->getLogger()
);
- $appData = $ocsClient->getApplication($app);
+ $appData = $ocsClient->getApplication($app, \OC_Util::getVersion());
// check if app is a shipped app or not. OCS apps have an integer as id, shipped apps use a string
if (!is_numeric($app)) {