Enable logged in users to force a certain language

This commit is contained in:
Jeroen De Meerleer 2018-12-29 12:15:54 +01:00 committed by Hypolite Petovan
parent b440b4c338
commit 33f7fd72ca

View file

@ -74,6 +74,10 @@ class L10n extends BaseObject
}
}
}
//if $_GET['lang'] is set force $_GET['lang']
if (isset($_GET['lang'])) {
$_SESSION['language'] = $_GET['lang'];
}
}
public static function setLangFromSession()