mirror of
https://github.com/flarum/framework.git
synced 2025-03-04 08:20:52 +08:00
Do not rely on extensions_enabled being present
This mostly simplifies setup in complex integration tests.
This commit is contained in:
parent
ee3640e160
commit
8e4d97260f
@ -293,7 +293,7 @@ class ExtensionManager
|
||||
*/
|
||||
public function getEnabled()
|
||||
{
|
||||
return json_decode($this->config->get('extensions_enabled'), true);
|
||||
return json_decode($this->config->get('extensions_enabled'), true) ?? [];
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user