WebInstallerOutput: Apply wfBCP47() to lang attribute
authorFomafix <fomafix@googlemail.com>
Thu, 13 Nov 2014 22:43:52 +0000 (22:43 +0000)
committer[[mw:User:Fomafix]] <gerritpatchuploader@gmail.com>
Thu, 13 Nov 2014 22:43:52 +0000 (22:43 +0000)
Change-Id: I7dce46380f56ff2960de7f6d9644c4cdc972a372

includes/installer/WebInstallerOutput.php

index 3094d55..22fb1df 100644 (file)
@@ -227,7 +227,7 @@ class WebInstallerOutput {
        public function getHeadAttribs() {
                return array(
                        'dir' => $this->getDir(),
-                       'lang' => $this->getLanguageCode(),
+                       'lang' => wfBCP47( $this->getLanguageCode() ),
                );
        }