mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 14:18:27 +01:00
Fix error when config defaultReloadableScripts
is not array (#6351)
This commit is contained in:
parent
e85244695b
commit
387479ad7c
@ -111,7 +111,10 @@ class CacheSettingsForm extends Model
|
||||
/* @var $module Module */
|
||||
$module = Yii::$app->getModule('admin');
|
||||
$instance = new static();
|
||||
$urls = array_merge($instance->getReloadableScriptsAsArray(), $module->defaultReloadableScripts);
|
||||
$urls = $instance->getReloadableScriptsAsArray();
|
||||
if (is_array($module->defaultReloadableScripts)) {
|
||||
$urls = array_merge($urls, $module->defaultReloadableScripts);
|
||||
}
|
||||
$event = new FetchReloadableScriptsEvent(['urls' => $urls]);
|
||||
$instance->trigger(static::EVENT_FETCH_RELOADABLE_SCRIPTS, $event);
|
||||
return $event->urls;
|
||||
|
Loading…
x
Reference in New Issue
Block a user