From 33f7fd72ca1991cb46c464e735fe5c165097f64b Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Sat, 29 Dec 2018 12:15:54 +0100 Subject: [PATCH] Enable logged in users to force a certain language --- src/Core/L10n.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Core/L10n.php b/src/Core/L10n.php index 74dea2d3f0..2fcf6bf44a 100644 --- a/src/Core/L10n.php +++ b/src/Core/L10n.php @@ -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() -- 2.39.5