mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Fix deprecation error in PHP 8.x when path or domain is null in setcookie()
This commit is contained in:
parent
22abeb7a88
commit
180ed429cf
4 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)
|
||||
{
|
||||
setcookie('lang_type', $lang_type, time() + 86400 * 365, \RX_BASEURL, null, !!config('session.use_ssl_cookies'));
|
||||
setcookie('lang_type', $lang_type, time() + 86400 * 365, \RX_BASEURL, '', !!config('session.use_ssl_cookies'));
|
||||
}
|
||||
|
||||
if(!$lang_type || !isset($enabled_langs[$lang_type]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue