forked from mirror/pixelfed
Merge pull request #3490 from shleeable/patch-25
Update LabsSettings.php - CookieJar::make() expects string, true given.
This commit is contained in:
commit
ecffbd294e
2 changed files with 3 additions and 3 deletions
|
@ -36,7 +36,7 @@ trait LabsSettings {
|
|||
$cookie = Cookie::forget('dark-mode');
|
||||
if($request->has('dark_mode')) {
|
||||
if($request->dark_mode == 'on') {
|
||||
$cookie = Cookie::make('dark-mode', true, 43800);
|
||||
$cookie = Cookie::make('dark-mode', 'true', 43800);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -93,4 +93,4 @@ trait LabsSettings {
|
|||
'royal'
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -163,7 +163,7 @@ class SettingsController extends Controller
|
|||
$mode = $request->input('mode');
|
||||
|
||||
if($mode == 'dark') {
|
||||
$cookie = Cookie::make('dark-mode', true, 43800);
|
||||
$cookie = Cookie::make('dark-mode', 'true', 43800);
|
||||
} else {
|
||||
$cookie = Cookie::forget('dark-mode');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue