diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-02-11 11:25:50 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-02-11 11:54:13 +0100 |
commit | 8cfdc62eaed5f80d92e7185ead451acb691a1b67 (patch) | |
tree | 8d2a80f48e8e109557f794c7bab78d9b9286e745 /lib/private/app | |
parent | 5165998723925b414f688021aeaa8b90a844a918 (diff) | |
download | nextcloud-server-8cfdc62eaed5f80d92e7185ead451acb691a1b67.tar.gz nextcloud-server-8cfdc62eaed5f80d92e7185ead451acb691a1b67.zip |
Update info checker requirements
Diffstat (limited to 'lib/private/app')
-rw-r--r-- | lib/private/app/codechecker/infochecker.php | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/lib/private/app/codechecker/infochecker.php b/lib/private/app/codechecker/infochecker.php index ac92ee2661c..812007d8839 100644 --- a/lib/private/app/codechecker/infochecker.php +++ b/lib/private/app/codechecker/infochecker.php @@ -41,21 +41,22 @@ class InfoChecker extends BasicEmitter { 'bugs', 'category', 'default_enable', - 'dependencies', + 'dependencies', // TODO: Mandatory as of ownCloud 11 'documentation', 'namespace', 'ocsid', 'public', 'remote', 'repository', - 'require', - 'requiremin', 'types', 'version', 'website', ]; private $deprecatedFields = [ 'info', + 'require', + 'requiremax', + 'requiremin', 'shipped', 'standalone', ]; @@ -137,7 +138,7 @@ class InfoChecker extends BasicEmitter { $versionFile = $appPath . '/appinfo/version'; if (is_file($versionFile)) { $version = trim(file_get_contents($versionFile)); - if(isset($info['version'])) { + if (isset($info['version'])) { if($info['version'] !== $version) { $this->emit('InfoChecker', 'differentVersions', [$version, $info['version']]); @@ -152,14 +153,6 @@ class InfoChecker extends BasicEmitter { } else { $this->emit('InfoChecker', 'migrateVersion', [$version]); } - } else { - if(!isset($info['version'])) { - $this->emit('InfoChecker', 'mandatoryFieldMissing', ['version']); - $errors[] = [ - 'type' => 'mandatoryFieldMissing', - 'field' => 'version', - ]; - } } return $errors; |