From 8038fde29d8405d8dd618ae97ba5d2d10c471516 Mon Sep 17 00:00:00 2001 From: rugk Date: Fri, 12 Aug 2016 18:30:14 +0200 Subject: [PATCH] Revert #44 Scrutinizer-ci confirmed the detection of this was a false-positive, so we can remove this workaround. They added it to their internal issue tracker. --- lib/I18n.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/I18n.php b/lib/I18n.php index 4a4fc3a6..7f2fe87e 100644 --- a/lib/I18n.php +++ b/lib/I18n.php @@ -143,7 +143,7 @@ class I18n // check if the lang cookie was set and that language exists if (array_key_exists('lang', $_COOKIE) && in_array($_COOKIE['lang'], $availableLanguages)) { - $match = $availableLanguages[array_search($_COOKIE['lang'], $availableLanguages)]; + $match = $_COOKIE['lang']; } // find a translation file matching the browsers language preferences else {