Overview
Comment:Fix typo dans fallback détection langue
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA1: 594c02079c18bee81d7f5bb1002a1666f1c66a76
User & Date: bohwaz on 2016-11-27 00:04:29
Other Links: manifest | tags
References
2020-12-08
23:25 Wiki page "Changelog/0.9" artifact: b9c916b4d1 user: bohwaz
Context
2016-11-29
09:14
Fix typo français check-in: c5d08ca357 user: bohwaz tags: trunk
2016-11-27
00:04
Fix typo dans fallback détection langue check-in: 594c02079c user: bohwaz tags: trunk, stable
2016-11-18
02:29
Vérifier que le champ existe avant de l'utiliser comme critère de tri check-in: a812eb71bf 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
	    {