diff --git a/framework/core/src/Core.php b/framework/core/src/Core.php index b7d853549..83262ba9a 100644 --- a/framework/core/src/Core.php +++ b/framework/core/src/Core.php @@ -1,9 +1,20 @@ where('key', $key)->pluck('value'))) { + $value = $default; + } + + return $value; + } } diff --git a/framework/core/src/Core/Models/Forum.php b/framework/core/src/Core/Models/Forum.php index 2d160b776..7996ed5fa 100755 --- a/framework/core/src/Core/Models/Forum.php +++ b/framework/core/src/Core/Models/Forum.php @@ -1,8 +1,14 @@ where('key', 'extensions_enabled')->pluck('value'), true); + $extensions = json_decode(Core::config('extensions_enabled'), true); $providers = []; foreach ($extensions as $extension) {