diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-05-08 11:55:02 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-05-08 11:55:02 +0200 |
commit | 16a0de6314c920145c9cf80d5fb3e7a254273045 (patch) | |
tree | 277a38686825c82ce4688ce68ccf7e6711e41e82 /lib | |
parent | ebf3953908a8dfdb754a5031d69326c6b83cf609 (diff) | |
parent | 49f94b17f7f3b2918e5a7377380e2bcce05c02e5 (diff) | |
download | nextcloud-server-16a0de6314c920145c9cf80d5fb3e7a254273045.tar.gz nextcloud-server-16a0de6314c920145c9cf80d5fb3e7a254273045.zip |
Merge pull request #16146 from owncloud/issue-16103-hide-module-already-exists-on-enable-app
Avoid the log entry with the ModuleAlreadyExists exception when enabl…
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/app.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/private/app.php b/lib/private/app.php index aec67e6efd6..a4dd513a5d8 100644 --- a/lib/private/app.php +++ b/lib/private/app.php @@ -385,7 +385,13 @@ class OC_App { public static function getAppNavigationEntries($app) { if (is_file(self::getAppPath($app) . '/appinfo/app.php')) { OC::$server->getNavigationManager()->clear(); - require $app . '/appinfo/app.php'; + try { + require $app . '/appinfo/app.php'; + } catch (\OC\Encryption\Exceptions\ModuleAlreadyExistsException $e) { + // FIXME we should avoid getting this exception in first place, + // For now we just catch it, since we don't care about encryption modules + // when trying to find out, whether the app has a navigation entry. + } return OC::$server->getNavigationManager()->getAll(); } return array(); |