mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 14:18:27 +01:00
Fix build assets from console (#7300)
This commit is contained in:
parent
405d262d9f
commit
abcfdea847
@ -34,8 +34,10 @@ class LiveAsset extends AssetBundle
|
||||
{
|
||||
parent::init();
|
||||
|
||||
Yii::$app->view->registerJsConfig('live.poll', [
|
||||
'nonce' => Security::getNonce(),
|
||||
]);
|
||||
if (!Yii::$app->request->isConsoleRequest) {
|
||||
Yii::$app->view->registerJsConfig('live.poll', [
|
||||
'nonce' => Security::getNonce(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user