From 353aa5a0d8dd1a48cd4f6d921a0b24c5330359c0 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 29 Jul 2008 23:54:46 -0400 Subject: move the language info, fix dir for locales darcs-hash:20080730035446-84dde-8ce202ea6956bb49e1be98307136fc299862ab9b.gz --- lib/util.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lib/util.php') diff --git a/lib/util.php b/lib/util.php index 13ce180b4..9033d7d1a 100644 --- a/lib/util.php +++ b/lib/util.php @@ -136,11 +136,12 @@ define('PAGE_TYPE_PREFS', 'text/html,application/xhtml+xml,application/xml;q=0.3 function common_show_header($pagetitle, $callable=NULL, $data=NULL, $headercall=NULL) { global $config, $xw; + $language = common_language(); + setlocale(LC_ALL, $language); + bindtextdomain("laconica", $config['site']['locale_path']); + textdomain("laconica"); + $httpaccept = isset($_SERVER['HTTP_ACCEPT']) ? $_SERVER['HTTP_ACCEPT'] : NULL; - $language = common_language(); - setlocale(LC_ALL, $language); - bindtextdomain("laconica", $config['site']['locale_path']); - textdomain("laconica"); # XXX: allow content negotiation for RDF, RSS, or XRDS -- cgit v1.2.3-54-g00ecf