Skip to content
Snippets Groups Projects
Commit ec980a8a authored by Bart Visscher's avatar Bart Visscher
Browse files

Merge pull request #2585 from mrtorrent/fix_install_app_version_check

Fix install app version check
parents df31ee5a 8dd7fa85
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment