diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-05-27 13:54:12 +0400 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-05-27 13:54:12 +0400 |
commit | d43a7c5f6ec2806c43c374d598c756a116c3d95b (patch) | |
tree | bc4cfd0a51ab46a2248439bef0b11aefbd7dc167 /lib/private/installer.php | |
parent | a79f3fd1c0ddf9b8ac4d59ce2affccd4aabf83a0 (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.php | 5 |
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")); } |