]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
get language before setting it.
authorEvan Prodromou <evan@prodromou.name>
Thu, 28 Aug 2008 00:53:23 +0000 (20:53 -0400)
committerEvan Prodromou <evan@prodromou.name>
Thu, 28 Aug 2008 00:53:23 +0000 (20:53 -0400)
darcs-hash:20080828005323-84dde-8f69e1e6115faa544c22436539148dac53ed6f65.gz

lib/util.php

index e14cc36aced85fec86ac35dd6aac3fe55a6c444f..08930e99a724cdef8bace9ac31cd5060834b239d 100644 (file)
@@ -173,6 +173,8 @@ function common_show_header($pagetitle, $callable=NULL, $data=NULL, $headercall=
 
        # FIXME: correct language for interface
 
+       $language = common_language();
+       
        common_element_start('html', array('xmlns' => 'http://www.w3.org/1999/xhtml',
                                                                           'xml:lang' => $language,
                                                                           'lang' => $language));