summaryrefslogtreecommitdiffstats
path: root/lib/private/TemplateLayout.php
diff options
context:
space:
mode:
authorGuillaume COMPAGNON <gcompagnon@outlook.com>2019-08-20 16:49:30 +0200
committerGuillaume Compagnon <gcompagnon@outlook.com>2019-08-20 17:11:40 +0200
commit0516675a5c055dd315ce98fa356e8669b46a1f7c (patch)
treec682b83eeb19c3fd293242945e6cf677fc9aa8d3 /lib/private/TemplateLayout.php
parent650e4f9f4c44cf55c28d0e6f7be988056cc6897c (diff)
downloadnextcloud-server-0516675a5c055dd315ce98fa356e8669b46a1f7c.tar.gz
nextcloud-server-0516675a5c055dd315ce98fa356e8669b46a1f7c.zip
autoloader.php could raise Not AllowedException
when theming is off Signed-off-by: Guillaume Compagnon <gcompagnon@outlook.com> modified: lib/private/TemplateLayout.php
Diffstat (limited to 'lib/private/TemplateLayout.php')
-rw-r--r--lib/private/TemplateLayout.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php
index f23ec97119f..94b39e951a5 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') {