mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Change default Cookie path to "/" for compatibility with JS function setCookie()
This commit is contained in:
parent
8d2b7101f4
commit
80e50d41f5
5 changed files with 6 additions and 6 deletions
|
|
@ -321,7 +321,7 @@ class Context
|
|||
$lang_type = preg_replace('/[^a-zA-Z0-9_-]/', '', $lang_type ?? '');
|
||||
if ($set_lang_cookie)
|
||||
{
|
||||
Rhymix\Framework\Cookie::set('lang_type', $lang_type, ['expires' => 365]);
|
||||
Rhymix\Framework\Cookie::set('lang_type', $lang_type, ['expires' => 365, 'path' => \RX_BASEURL]);
|
||||
}
|
||||
|
||||
if(!$lang_type || !isset($enabled_langs[$lang_type]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue