mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-30 04:23:11 +03:00
Prevented settings being overfetched from db/cache
This commit is contained in:
@ -64,7 +64,7 @@ function userCan($permission, Ownable $ownable = null)
|
||||
*/
|
||||
function setting($key = null, $default = false)
|
||||
{
|
||||
$settingService = app(\BookStack\Services\SettingService::class);
|
||||
$settingService = resolve(\BookStack\Services\SettingService::class);
|
||||
if (is_null($key)) return $settingService;
|
||||
return $settingService->get($key, $default);
|
||||
}
|
||||
|
Reference in New Issue
Block a user