]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fixup locale stuff from mikenz
authorEvan Prodromou <evan@prodromou.name>
Wed, 6 Aug 2008 04:04:33 +0000 (00:04 -0400)
committerEvan Prodromou <evan@prodromou.name>
Wed, 6 Aug 2008 04:04:33 +0000 (00:04 -0400)
darcs-hash:20080806040433-84dde-a504751a8a0329a37d866e68a9ecda6a5d629c55.gz

lib/util.php

index bd24d8ebdb2f70e3f92ff214d67b94e17a94d433..9ea503626644a46712461995521cb4d6ec43939a 100644 (file)
@@ -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