summaryrefslogtreecommitdiffstats
path: root/lib/private/app.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2016-01-10 17:02:50 +0100
committerLukas Reschke <lukas@owncloud.com>2016-01-10 17:02:50 +0100
commite43bf545037e20b5556f9840cf5b04193182dd90 (patch)
tree51903f3bd674a0fea39e27a04f72d85a4864bd0e /lib/private/app.php
parent656b5418996744b5ba095afac59b4fdb4db37337 (diff)
downloadnextcloud-server-e43bf545037e20b5556f9840cf5b04193182dd90.tar.gz
nextcloud-server-e43bf545037e20b5556f9840cf5b04193182dd90.zip
Assume apps from the appstore are compatible with the current version
Filtering is done server-side already so only compatible apps are delivered. Otherwise this leads to a ton of error messages as the info.xml cannot be read at that state. Fixes https://github.com/owncloud/core/issues/21556
Diffstat (limited to 'lib/private/app.php')
-rw-r--r--lib/private/app.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/app.php b/lib/private/app.php
index 500a60060e6..705d60cf8d6 100644
--- a/lib/private/app.php
+++ b/lib/private/app.php
@@ -912,6 +912,11 @@ class OC_App {
$apps[$i]['internalclass'] = 'recommendedapp';
}
+ // Apps from the appstore are always assumed to be compatible with the
+ // the current release as the initial filtering is done on the appstore
+ $apps[$i]['dependencies']['owncloud']['@attributes']['min-version'] = implode('.', \OCP\Util::getVersion());
+ $apps[$i]['dependencies']['owncloud']['@attributes']['max-version'] = implode('.', \OCP\Util::getVersion());
+
$i++;
}