1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

Multisite navigation support (when multisite plugin installed)

This commit is contained in:
Cameron
2017-10-11 18:57:32 -07:00
parent 166837f053
commit e35259afe9
4 changed files with 61 additions and 2 deletions

View File

@@ -2064,7 +2064,12 @@ function session_set($name, $value, $expire='', $path = e_HTTP, $domain = '', $s
if(($domain == '' && !e_SUBDOMAIN) || (defined('MULTILANG_SUBDOMAIN') && MULTILANG_SUBDOMAIN === TRUE))
{
$domain = (e_DOMAIN != FALSE) ? ".".e_DOMAIN : "";
}
}
if(defined('e_MULTISITE_MATCH'))
{
$path = '/';
}
setcookie($name, $value, $expire, $path, $domain, $secure, true);
$_COOKIE[$name] = $value;