1
0
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:
Franz Liedke
2019-06-04 23:43:28 +02:00
parent 57463f4862
commit 2637e83490

View File

@@ -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) ?? [];
} }
/** /**