Przeglądaj źródła

Use isAppVersionCompatible in app installer

tags/v6.0.0alpha2
Miquel Rodríguez Telep / Michael Rodríguez-Torrent 11 lat temu
rodzic
commit
8dd7fa8507
1 zmienionych plików z 4 dodań i 2 usunięć
  1. 4
    2
      lib/installer.php

+ 4
- 2
lib/installer.php Wyświetl plik

@@ -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);

Ładowanie…
Anuluj
Zapisz