Fix various language tags used in Html attribs to use wfBCP47()
[lhc/web/wiklou.git] / includes / OutputPage.php
index 3657ac3..96a503e 100644 (file)
@@ -3215,7 +3215,7 @@ $templates
                                        foreach ( $variants as $_v ) {
                                                $tags["variant-$_v"] = Html::element( 'link', array(
                                                        'rel' => 'alternate',
-                                                       'hreflang' => $_v,
+                                                       'hreflang' => wfBCP47( $_v ),
                                                        'href' => $this->getTitle()->getLocalURL( array( 'variant' => $_v ) ) )
                                                );
                                        }