summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-08-06 00:04:33 -0400
committerEvan Prodromou <evan@prodromou.name>2008-08-06 00:04:33 -0400
commit0d58d4216bec88821345c5fbdae6452f1dcec3a1 (patch)
tree08a9dc35c5501290ea1853f335627c0e75ad5da6
parent45983cc590cbac384cc1265f3eab66bbcbf80e77 (diff)
fixup locale stuff from mikenz
darcs-hash:20080806040433-84dde-a504751a8a0329a37d866e68a9ecda6a5d629c55.gz
-rw-r--r--lib/util.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index bd24d8ebd..9ea503626 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