Overview
Comment:Fix: utilisation d'un shim à la place de l'appel à Intl Locale pour extraire la langue, si nécessaire
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 8e0f05e71d7bd04ea57d8426fdb84f24501cc985
User & Date: bohwaz on 2016-09-30 04:41:51
Other Links: manifest | tags
References
2020-12-08
23:25 Wiki page "Changelog/0.9" artifact: b9c916b4d1 user: bohwaz
Context
2016-10-12
00:13
Correction cotisation membre apparaît comme valide quand aucune cotisation enregistrée (pour date à date), signalé par @Simon check-in: fba3dce0bb user: bohwaz tags: trunk
2016-09-30
04:41
Fix: utilisation d'un shim à la place de l'appel à Intl Locale pour extraire la langue, si nécessaire check-in: 8e0f05e71d user: bohwaz tags: trunk
2016-09-28
05:22
Ajout de signaux pour plugins check-in: e015b7c9c2 user: bohwaz tags: trunk
Changes

Modified src/include/lib/Garradin/Squelette.php from [b1e462beb9] to [80a2c25938].

218
219
220
221
222
223
224


225







226
227
228
229
230
231
232
            ? WWW_URL . 'squelettes/default.css'
            : WWW_URL . 'squelettes-dist/default.css';

        $this->assign('url_css_defaut', $url);

        if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE']))
        {


	        $lang = \Locale::acceptFromHttp($_SERVER['HTTP_ACCEPT_LANGUAGE']);







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








>
>
|
>
>
>
>
>
>
>







218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
            ? WWW_URL . 'squelettes/default.css'
            : WWW_URL . 'squelettes-dist/default.css';

        $this->assign('url_css_defaut', $url);

        if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE']))
        {
            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
	    {
	    	$lang = '';
	    }