Pluf Framework

Pluf Framework Commit Details


Date:2009-11-06 01:53:18 (15 years 1 month ago)
Author:Loic d'Anterroches
Branch:develop, master
Commit:ce3f6e499d3764fe034d303bc944bdf1b060f088
Parents: 1ccd34d12a933c7133a45f8d0481a8e39475cee9
Message:Fixed issue 331, bad cookie check for the language settings.

Changes:

File differences

src/Pluf/Middleware/Translation.php
4848
4949
5050
51
52
51
52
5353
5454
5555
$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;
}

Archive Download the corresponding diff file

Branches

Tags

Number of commits:
Page rendered in 0.05839s using 14 queries.