Overview
SHA1 Hash:594c02079c18bee81d7f5bb1002a1666f1c66a76
Date: 2016-11-27 00:04:29
User: bohwaz
Comment:Fix typo dans fallback détection langue
Timelines: family | ancestors | descendants | both | trunk | stable
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2016-11-29
09:14
[c5d08ca357] Fix typo français (user: bohwaz, tags: trunk)
2016-11-27
00:04
[594c02079c] Fix typo dans fallback détection langue (user: bohwaz, tags: trunk, stable)
2016-11-18
02:29
[a812eb71bf] Vérifier que le champ existe avant de l'utiliser comme critère de tri (user: bohwaz, tags: trunk)
Changes

Modified src/include/lib/Garradin/Squelette.php from [cd345a39e9] to [eb9881daec].

224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
        {
            if (function_exists('locale_accept_from_http'))
            {
	           $lang = locale_accept_from_http($_SERVER['HTTP_ACCEPT_LANGUAGE']);
            }
            else
            {
                $lang = preg_replace('/[^a-z]/i', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
                $lang = strtolower(substr($lang, 0, 2));
            }

	        $lang = strtolower(substr($lang, 0, 2));
	    }
	    else
	    {







|







224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
        {
            if (function_exists('locale_accept_from_http'))
            {
	           $lang = locale_accept_from_http($_SERVER['HTTP_ACCEPT_LANGUAGE']);
            }
            else
            {
                $lang = preg_replace('/[^a-z]/i', '', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
                $lang = strtolower(substr($lang, 0, 2));
            }

	        $lang = strtolower(substr($lang, 0, 2));
	    }
	    else
	    {