mirror of
https://github.com/flarum/core.git
synced 2025-07-21 16:51:34 +02:00
Do not rely on extensions_enabled being present
This mostly simplifies setup in complex integration tests.
This commit is contained in:
@@ -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) ?? [];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user