Fix Themeloader instanceof condition

This commit is contained in:
Lucas Bartholemy 2020-04-14 14:00:00 +02:00
parent c417bc6716
commit d2728c3a19

View File

@ -51,7 +51,7 @@ class ThemeLoader implements BootstrapInterface
}
if ($app->view->theme instanceof Theme) {
if (!Yii::$app->request->isConsoleRequest && !Yii::$app instanceof ConsoleApplication) {
if (!Yii::$app->request->isConsoleRequest && !(Yii::$app instanceof ConsoleApplication)) {
// Register the theme (e.g. add core js/css header)
$app->view->theme->register();
}