diff options
author | Miquel Rodríguez Telep / Michael Rodríguez-Torrent <miquel@designunbound.co.uk> | 2013-03-26 22:19:15 +0000 |
---|---|---|
committer | Miquel Rodríguez Telep / Michael Rodríguez-Torrent <miquel@designunbound.co.uk> | 2013-03-27 10:16:05 +0000 |
commit | 8dd7fa850786c801299ba48546e566781fac9bb1 (patch) | |
tree | 8d55044ed4541792d5afc76c3a8cc578a0180db2 /lib/installer.php | |
parent | d49e8ffb5ed4be03f05b607d9b673e4543b94d21 (diff) | |
download | nextcloud-server-8dd7fa850786c801299ba48546e566781fac9bb1.tar.gz nextcloud-server-8dd7fa850786c801299ba48546e566781fac9bb1.zip |
Use isAppVersionCompatible in app installer
Diffstat (limited to 'lib/installer.php')
-rw-r--r-- | lib/installer.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/installer.php b/lib/installer.php index 251d115b76c..49ba4492632 100644 --- a/lib/installer.php +++ b/lib/installer.php @@ -134,8 +134,10 @@ class OC_Installer{ } // check if the app is compatible with this version of ownCloud - $version=OC_Util::getVersion(); - if(!isset($info['require']) or ($version[0]>$info['require'])) { + if( + !isset($info['require']) + or !OC_App::isAppVersionCompatible(OC_Util::getVersion(), $info['require']) + ) { OC_Log::write('core', 'App can\'t be installed because it is not compatible with this version of ownCloud', OC_Log::ERROR); |