Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-05-27 13:54:12 +0400
committerVincent Petry <pvince81@owncloud.com>2014-05-27 13:54:12 +0400
commitd43a7c5f6ec2806c43c374d598c756a116c3d95b (patch)
treebc4cfd0a51ab46a2248439bef0b11aefbd7dc167 /lib/private/installer.php
parenta79f3fd1c0ddf9b8ac4d59ce2affccd4aabf83a0 (diff)
Added requiremin/requiremax fields for apps
Apps can now specify a minimum and maximum version of ownCloud in which they are supported.
Diffstat (limited to 'lib/private/installer.php')
-rw-r--r--lib/private/installer.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/private/installer.php b/lib/private/installer.php
index 667c05c9c16..3bddfa6a3b7 100644
--- a/lib/private/installer.php
+++ b/lib/private/installer.php
@@ -133,10 +133,7 @@ class OC_Installer{
}
// check if the app is compatible with this version of ownCloud
- if(
- !isset($info['require'])
- or !OC_App::isAppVersionCompatible(OC_Util::getVersion(), $info['require'])
- ) {
+ if(!OC_App::isAppCompatible(OC_Util::getVersion(), $info)) {
OC_Helper::rmdirr($extractDir);
throw new \Exception($l->t("App can't be installed because it is not compatible with this version of ownCloud"));
}