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