From e0777b6bc9492a01d1851c5cc2668369b46127b2 Mon Sep 17 00:00:00 2001 From: Jeroen De meerleer Date: Fri, 28 Dec 2018 22:39:07 +0100 Subject: [PATCH] forcing language by parameter --- src/Core/L10n.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Core/L10n.php b/src/Core/L10n.php index 73042c7c26..3b62a77952 100644 --- a/src/Core/L10n.php +++ b/src/Core/L10n.php @@ -109,7 +109,10 @@ class L10n extends BaseObject } } } - + //if $_GET['lang'] is set force $_GET['lang'] + if (isset($_GET['lang'])) { + $lang_list = [ $_GET['lang'] ]; + } // check if we have translations for the preferred languages and pick the 1st that has foreach ($lang_list as $lang) { if ($lang === 'en' || (file_exists("view/lang/$lang") && is_dir("view/lang/$lang"))) { -- 2.39.5