From 0516675a5c055dd315ce98fa356e8669b46a1f7c Mon Sep 17 00:00:00 2001 From: Guillaume COMPAGNON Date: Tue, 20 Aug 2019 16:49:30 +0200 Subject: [PATCH] autoloader.php could raise Not AllowedException when theming is off Signed-off-by: Guillaume Compagnon modified: lib/private/TemplateLayout.php --- lib/private/TemplateLayout.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php index f23ec97119..94b39e951a 100644 --- a/lib/private/TemplateLayout.php +++ b/lib/private/TemplateLayout.php @@ -113,6 +113,8 @@ class TemplateLayout extends \OC_Template { $this->assign('themingInvertMenu', $util->invertTextColor(\OC::$server->getThemingDefaults()->getColorPrimary())); } catch (\OCP\AppFramework\QueryException $e) { $this->assign('themingInvertMenu', false); + } catch (\OCP\AutoloadNotAllowedException $e) { + $this->assign('themingInvertMenu', false); } } else if ($renderAs === 'error') {