Commit f399ef59 authored by okhin's avatar okhin 🚴

Actually switch languages

parent 55459c47
Pipeline #2356 passed with stages
in 1 minute and 34 seconds
......@@ -42,7 +42,7 @@ class Controller
foreach (explode(',', LANGUAGES) as $language) {
foreach ($accept_languages as $accept_language) {
if (strpos($language, $accept_language)>=0) {
if (substr($language, 0, strlen($accept_language))===$accept_language) {
$lang = $language;
$lang_short = explode($language, '-')[0];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment