Use isAppVersionCompatible in app installer
This commit is contained in:
parent
d49e8ffb5e
commit
8dd7fa8507
|
@ -134,8 +134,10 @@ class OC_Installer{
|
||||||
}
|
}
|
||||||
|
|
||||||
// check if the app is compatible with this version of ownCloud
|
// check if the app is compatible with this version of ownCloud
|
||||||
$version=OC_Util::getVersion();
|
if(
|
||||||
if(!isset($info['require']) or ($version[0]>$info['require'])) {
|
!isset($info['require'])
|
||||||
|
or !OC_App::isAppVersionCompatible(OC_Util::getVersion(), $info['require'])
|
||||||
|
) {
|
||||||
OC_Log::write('core',
|
OC_Log::write('core',
|
||||||
'App can\'t be installed because it is not compatible with this version of ownCloud',
|
'App can\'t be installed because it is not compatible with this version of ownCloud',
|
||||||
OC_Log::ERROR);
|
OC_Log::ERROR);
|
||||||
|
|
Loading…
Reference in New Issue