]> git.mxchange.org Git - friendica.git/commitdiff
forcing language by parameter
authorJeroen De meerleer <me@jeroened.be>
Fri, 28 Dec 2018 21:39:07 +0000 (22:39 +0100)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 21 Jan 2019 14:50:58 +0000 (09:50 -0500)
src/Core/L10n.php

index 73042c7c26ab35b7f61a6294c6ed9d7192b4ea2f..3b62a7795289e34baf2cbe410000877eca52693e 100644 (file)
@@ -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"))) {