mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 12:32:14 +09:00
Update cookie value inside PHP if color scheme is changed manually
This commit is contained in:
parent
79c10d0b23
commit
96295edc75
1 changed files with 1 additions and 0 deletions
|
|
@ -2715,6 +2715,7 @@ class Context
|
||||||
{
|
{
|
||||||
if (in_array($color_scheme, ['light', 'dark']))
|
if (in_array($color_scheme, ['light', 'dark']))
|
||||||
{
|
{
|
||||||
|
$_COOKIE['rx_color_scheme'] = $color_scheme;
|
||||||
setcookie('rx_color_scheme', $color_scheme, time() + 86400 * 365, \RX_BASEURL, null, !!config('session.use_ssl_cookies'));
|
setcookie('rx_color_scheme', $color_scheme, time() + 86400 * 365, \RX_BASEURL, null, !!config('session.use_ssl_cookies'));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue