Merge pull request #16813 from compagnon/fix/noid/AutoloadNotAllowedException-theming-off

autoloader.php could raise Not AllowedException
This commit is contained in:
blizzz 2019-08-21 16:04:32 +02:00 committed by GitHub
commit 9ac15bc4e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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