From: Evan Prodromou Date: Wed, 6 Aug 2008 04:04:33 +0000 (-0400) Subject: fixup locale stuff from mikenz X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0d58d4216bec88821345c5fbdae6452f1dcec3a1;p=quix0rs-gnu-social.git fixup locale stuff from mikenz darcs-hash:20080806040433-84dde-a504751a8a0329a37d866e68a9ecda6a5d629c55.gz --- diff --git a/lib/util.php b/lib/util.php index bd24d8ebdb..9ea5036266 100644 --- a/lib/util.php +++ b/lib/util.php @@ -144,7 +144,14 @@ function common_init_language() { bindtextdomain("laconica", $config['site']['locale_path']); bind_textdomain_codeset("laconica", "UTF-8"); textdomain("laconica"); - + setlocale(LC_CTYPE, 'C'); +} + +define('PAGE_TYPE_PREFS', 'text/html,application/xhtml+xml,application/xml;q=0.3,text/xml;q=0.2'); + +function common_show_header($pagetitle, $callable=NULL, $data=NULL, $headercall=NULL) { + global $config, $xw; + $httpaccept = isset($_SERVER['HTTP_ACCEPT']) ? $_SERVER['HTTP_ACCEPT'] : NULL; # XXX: allow content negotiation for RDF, RSS, or XRDS