mirror of
https://github.com/flarum/core.git
synced 2025-07-19 15:51:16 +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()
|
||||
{
|
||||
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