1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-09 10:22:51 +03:00

Aligned setting helper with new get method changes

Also removed old unsused facade that existed for settings.
This commit is contained in:
Dan Brown
2021-02-10 23:21:49 +00:00
parent b0f4500c34
commit 54f5bf9437
4 changed files with 2 additions and 24 deletions

View File

@@ -79,9 +79,9 @@ function userCanOnAny(string $permission, string $entityClass = null): bool
/**
* Helper to access system settings.
* @return bool|string|SettingService
* @return mixed|SettingService
*/
function setting(string $key = null, $default = false)
function setting(string $key = null, $default = null)
{
$settingService = resolve(SettingService::class);