1
0
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:
Dan Brown
2017-02-05 18:57:57 +00:00
parent 86625a7642
commit 65899a3e91
3 changed files with 14 additions and 6 deletions

View File

@ -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);
}