From 3fdebaa5dc4a903e9db64f8bafe11929c5f50304 Mon Sep 17 00:00:00 2001 From: Frank Karlitschek Date: Tue, 2 Oct 2012 12:10:45 +0200 Subject: 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 4.9 into the info.xml of your app to make it as compatible with 4.5 --- lib/app.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/app.php') 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 ); } -- cgit v1.2.3