diff options
author | Guillaume COMPAGNON <gcompagnon@outlook.com> | 2019-08-20 16:49:30 +0200 |
---|---|---|
committer | Guillaume Compagnon <gcompagnon@outlook.com> | 2019-08-20 17:11:40 +0200 |
commit | 0516675a5c055dd315ce98fa356e8669b46a1f7c (patch) | |
tree | c682b83eeb19c3fd293242945e6cf677fc9aa8d3 /lib/private/TemplateLayout.php | |
parent | 650e4f9f4c44cf55c28d0e6f7be988056cc6897c (diff) | |
download | nextcloud-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.php | 2 |
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') { |