From a478fb3de5ccaec34e69f18731ca3a4ab62e5a72 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Fri, 11 Aug 2017 10:57:57 +0200 Subject: [PATCH] Fix issue with locale cookie --- app/bootstrap.php.d/30-trans.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/bootstrap.php.d/30-trans.php b/app/bootstrap.php.d/30-trans.php index e18aff5..9ec8a36 100644 --- a/app/bootstrap.php.d/30-trans.php +++ b/app/bootstrap.php.d/30-trans.php @@ -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; }