diff options
author | Joas Schilling <coding@schilljs.com> | 2018-02-07 16:03:21 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2018-02-16 10:23:51 +0100 |
commit | 17a26dfcc1f4d02b54e6cbb500f41bbe25609f1e (patch) | |
tree | 045682f754bec9284239df359715660148251011 /lib/private/App/AppManager.php | |
parent | 620ee00ac5d176e85ba0dd9dd10cff6d1ef5172f (diff) | |
download | nextcloud-server-17a26dfcc1f4d02b54e6cbb500f41bbe25609f1e.tar.gz nextcloud-server-17a26dfcc1f4d02b54e6cbb500f41bbe25609f1e.zip |
Validate the info.xml against the appstore schema file
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/App/AppManager.php')
-rw-r--r-- | lib/private/App/AppManager.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/App/AppManager.php b/lib/private/App/AppManager.php index 0e921ba1b7f..81037b42613 100644 --- a/lib/private/App/AppManager.php +++ b/lib/private/App/AppManager.php @@ -411,6 +411,7 @@ class AppManager implements IAppManager { /** * @inheritdoc + * In case you change this method, also change \OC\App\CodeChecker\InfoChecker::isShipped() */ public function isShipped($appId) { $this->loadShippedJson(); @@ -422,6 +423,10 @@ class AppManager implements IAppManager { return in_array($appId, $alwaysEnabled, true); } + /** + * In case you change this method, also change \OC\App\CodeChecker\InfoChecker::loadShippedJson() + * @throws \Exception + */ private function loadShippedJson() { if ($this->shippedApps === null) { $shippedJson = \OC::$SERVERROOT . '/core/shipped.json'; |