From 7fe6f0206acc7e882de983407666996b7dabc65b Mon Sep 17 00:00:00 2001 From: Fomafix Date: Wed, 17 Dec 2014 08:10:26 +0000 Subject: [PATCH] Use getHtmlCode() instead of getCode() to set the lang attribute The lang attribute of HTML elements should conform to BCP 47. Change-Id: Ia8a088add29daea39e90bb277279a6485990d18a --- includes/page/Article.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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
", -- 2.20.1