Răsfoiți Sursa

Remove unnecessary array

Now it is right...
rugk 10 ani în urmă
părinte
comite
80e9d75477
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      lib/i18n.php

+ 1 - 1
lib/i18n.php

@@ -141,7 +141,7 @@ class i18n
         // check if the lang cookie was set and that language exists
         // check if the lang cookie was set and that language exists
         if (array_key_exists('lang', $_COOKIE) && in_array($_COOKIE['lang'], $availableLanguages))
         if (array_key_exists('lang', $_COOKIE) && in_array($_COOKIE['lang'], $availableLanguages))
         {
         {
-            $match = $availableLanguages[$_COOKIE['lang']];
+            $match = $availableLanguages['lang'];
         }
         }
         // find a translation file matching the browsers language preferences
         // find a translation file matching the browsers language preferences
         else
         else