From: Fomafix Date: Fri, 24 Jul 2015 15:24:03 +0000 (+0000) Subject: Feed.php: Apply wfBCP47 to language code X-Git-Tag: 1.31.0-rc.0~9888 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=e4e40eabc29e2d7e492030f57ff1e3d0c36ea9d2;p=lhc%2Fweb%2Fwiklou.git Feed.php: Apply wfBCP47 to language code Change-Id: Ibaf771f6348bd5c25a39d6e6ae328251191454e2 --- diff --git a/includes/Feed.php b/includes/Feed.php index 600b136d86..2133dae48c 100644 --- a/includes/Feed.php +++ b/includes/Feed.php @@ -141,7 +141,7 @@ class FeedItem { */ public function getLanguage() { global $wgLanguageCode; - return $wgLanguageCode; + return wfBCP47( $wgLanguageCode ); } /**