diff --git a/src/Pluf/Middleware/Translation.php b/src/Pluf/Middleware/Translation.php index a48cf1a..b9c072a 100644 --- a/src/Pluf/Middleware/Translation.php +++ b/src/Pluf/Middleware/Translation.php @@ -48,8 +48,8 @@ class Pluf_Middleware_Translation $lang = false; } } - if ($lang === false and !empty($request->COOKIES[Pluf::f('lang_cookie', 'pluf_language')])) { - $lang = $request->COOKIES[Pluf::f('lang_cookie', 'pluf_language')]; + if ($lang === false and !empty($request->COOKIE[Pluf::f('lang_cookie', 'pluf_language')])) { + $lang = $request->COOKIE[Pluf::f('lang_cookie', 'pluf_language')]; if ($lang and !in_array($lang, Pluf::f('languages', array('en')))) { $lang = false; }