diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-10-02 12:10:45 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-10-02 12:10:45 +0200 |
commit | 3fdebaa5dc4a903e9db64f8bafe11929c5f50304 (patch) | |
tree | a78e36f970cf8d374d684ea7b1fd3263d7763102 /lib/app.php | |
parent | 783c02eda917cef549135103876a30bebcb89b23 (diff) | |
download | nextcloud-server-3fdebaa5dc4a903e9db64f8bafe11929c5f50304.tar.gz nextcloud-server-3fdebaa5dc4a903e9db64f8bafe11929c5f50304.zip |
automatically remove and prevent installation of apps with a require version less than the current one. We check now the first ad second part of the version number.
Also increase the require tags of the core apps to 4.9 Please note that 4.9 is the internal versionnumber of the upcoming 4.5 release.
You have to pu a <require>4.9</require> into the info.xml of your app to make it as compatible with 4.5
Diffstat (limited to 'lib/app.php')
-rwxr-xr-x | lib/app.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/app.php b/lib/app.php index 7889339e420..90b5c58a448 100755 --- a/lib/app.php +++ b/lib/app.php @@ -664,8 +664,8 @@ class OC_App{ $version = OC_Util::getVersion(); foreach($apps as $app) { // check if the app is compatible with this version of ownCloud - $info = OC_App::getAppInfo($app); - if(!isset($info['require']) or ($version[0]>$info['require'])) { + $info = OC_App::getAppInfo($app); + if(!isset($info['require']) or (($version[0].'.'.$version[1])>$info['require'])) { OC_Log::write('core', 'App "'.$info['name'].'" ('.$app.') can\'t be used because it is not compatible with this version of ownCloud', OC_Log::ERROR); OC_App::disable( $app ); } |