1
0
mirror of https://github.com/flarum/core.git synced 2025-07-29 04:30:56 +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 ee3640e160
commit 8e4d97260f

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