mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 22:28:51 +01:00
Fix Themeloader instanceof condition
This commit is contained in:
parent
c417bc6716
commit
d2728c3a19
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user