mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
Started social registration
This commit is contained in:
@ -33,7 +33,16 @@ class SettingService
|
||||
public function get($key, $default = false)
|
||||
{
|
||||
$setting = $this->getSettingObjectByKey($key);
|
||||
return $setting === null ? $default : $setting->value;
|
||||
$value = $setting === null ? null : $setting->value;
|
||||
|
||||
// Change string booleans to actual booleans
|
||||
if($value === 'true') $value = true;
|
||||
if($value === 'false') $value = false;
|
||||
|
||||
// Set to default if empty
|
||||
if($value === '') $value = $default;
|
||||
|
||||
return $value === null ? $default : $value;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user