]> git.agnieray.net Git - galette.git/commitdiff
Fix language detection priority not respected; refs #1603
authorJohan Cwiklinski <johan@x-tnd.be>
Sat, 4 Dec 2021 07:09:43 +0000 (08:09 +0100)
committerJohan Cwiklinski <johan@x-tnd.be>
Thu, 16 Dec 2021 05:31:12 +0000 (06:31 +0100)
galette/lib/Galette/Core/I18n.php

index bf82e8d16ba2216a4b5043c177a4e4dca8b96222..e4ab77b1a5495797164b7b0513aa649232de154f 100644 (file)
@@ -105,7 +105,7 @@ class I18n
                         $short_key = explode('_', $lang)[0];
                         if ($short_key == $short_locale) {
                             $dlang = $lang;
-                            break;
+                            break 2;
                         }
                     }
                 }