forked from deblan/gist
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();
|
$foundLocale = $app['translator']->getLocale();
|
||||||
|
|
||||||
foreach ($app['locales'] as $locale) {
|
foreach ($app['locales'] as $locale) {
|
||||||
if ($cookie === $locale || $accept->has($locale)) {
|
if ($cookieValue === $locale || $accept->has($locale)) {
|
||||||
$foundLocale = $locale;
|
$foundLocale = $locale;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue