Fix for historical reason
This commit is contained in:
parent
372c7768d0
commit
857827bcdc
|
|
@ -75,6 +75,9 @@ class PluginManager
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->enabled = collect(json_decode($this->option->get('plugins_enabled', '[]'), true))
|
$this->enabled = collect(json_decode($this->option->get('plugins_enabled', '[]'), true))
|
||||||
|
->reject(function ($item) {
|
||||||
|
return is_string($item);
|
||||||
|
})
|
||||||
->mapWithKeys(function ($item) {
|
->mapWithKeys(function ($item) {
|
||||||
return [$item['name'] => ['version' => $item['version']]];
|
return [$item['name'] => ['version' => $item['version']]];
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user