autoloader.php could raise Not AllowedException

when theming is off

Signed-off-by: Guillaume Compagnon <gcompagnon@outlook.com>

	modified:   lib/private/TemplateLayout.php
This commit is contained in:
Guillaume COMPAGNON 2019-08-20 16:49:30 +02:00 committed by Guillaume Compagnon
parent 650e4f9f4c
commit 0516675a5c
1 changed files with 2 additions and 0 deletions

View File

@ -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') {