Avoid the log entry with the ModuleAlreadyExists exception when enabling the app
This commit is contained in:
parent
12b24ee567
commit
49f94b17f7
1 changed files with 7 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue