From: Fomafix Date: Wed, 17 Dec 2014 08:10:26 +0000 (+0000) Subject: Use getHtmlCode() instead of getCode() to set the lang attribute X-Git-Tag: 1.31.0-rc.0~12873^2 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=7fe6f0206acc7e882de983407666996b7dabc65b;p=lhc%2Fweb%2Fwiklou.git Use getHtmlCode() instead of getCode() to set the lang attribute The lang attribute of HTML elements should conform to BCP 47. Change-Id: Ia8a088add29daea39e90bb277279a6485990d18a --- diff --git a/includes/page/Article.php b/includes/page/Article.php index 0318f654f7..45b6298592 100644 --- a/includes/page/Article.php +++ b/includes/page/Article.php @@ -835,7 +835,7 @@ class Article implements Page { if ( $showCacheHint ) { $dir = $this->getContext()->getLanguage()->getDir(); - $lang = $this->getContext()->getLanguage()->getCode(); + $lang = $this->getContext()->getLanguage()->getHtmlCode(); $outputPage->wrapWikiMsg( "
\n$1\n
",