mirror of
https://gitnet.fr/deblan/gist.git
synced 2021-08-14 08:30:49 +02:00
Fix issue with locale cookie
This commit is contained in:
parent
91cdb2341c
commit
a478fb3de5
@ -50,7 +50,7 @@ $app->get('/', function (Request $request) use ($app) {
|
||||
$foundLocale = $app['translator']->getLocale();
|
||||
|
||||
foreach ($app['locales'] as $locale) {
|
||||
if ($cookie === $locale || $accept->has($locale)) {
|
||||
if ($cookieValue === $locale || $accept->has($locale)) {
|
||||
$foundLocale = $locale;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user