summaryrefslogtreecommitdiffstats
path: root/lib/private/app.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-05-07 11:00:55 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-05-07 11:00:55 +0200
commit49f94b17f7f3b2918e5a7377380e2bcce05c02e5 (patch)
treee6b4d5d92a1b2df5e98376ae3b4791b30e2f8d41 /lib/private/app.php
parent12b24ee567349faa7991b0a86d45e42b67daf43e (diff)
downloadnextcloud-server-49f94b17f7f3b2918e5a7377380e2bcce05c02e5.tar.gz
nextcloud-server-49f94b17f7f3b2918e5a7377380e2bcce05c02e5.zip
Avoid the log entry with the ModuleAlreadyExists exception when enabling the app
Diffstat (limited to 'lib/private/app.php')
-rw-r--r--lib/private/app.php8
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();