mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
Fix for language-detection when using only sessions.
This commit is contained in:
parent
5033689543
commit
c7db2141ca
@ -496,7 +496,8 @@ class language{
|
||||
{
|
||||
// new - e_language moved to e107 namespace - $_SESSION['e107']['e_language']
|
||||
$oldlan = $session->get('e_language');
|
||||
if(!$session->has('e_language') || (($session->get('e_language') != $this->detect) && $this->isValid($session->get('e_language'))))
|
||||
|
||||
if(!$session->has('e_language') || (($session->get('e_language') != $this->detect) && $this->isValid($this->detect)))
|
||||
{
|
||||
$session->set('e_language', $this->detect);
|
||||
}
|
||||
@ -522,7 +523,8 @@ class language{
|
||||
}
|
||||
}
|
||||
else // No Language-change Trigger Detected.
|
||||
{
|
||||
{
|
||||
|
||||
if($session->has('e_language'))
|
||||
{
|
||||
$user_language = $session->get('e_language');
|
||||
|
Loading…
x
Reference in New Issue
Block a user