X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FFeed.php;h=2133dae48c8534ca583742497c9f6c8fb79617e7;hb=5e843cca772f67faaacc8967a48d8bf964b5ef41;hp=9be3f577cba3ae5f4f42ec091f0785cc3cae8749;hpb=0b818f54c66243326405bbb033ea10c16dbf36f0;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Feed.php b/includes/Feed.php index 9be3f577cb..2133dae48c 100644 --- a/includes/Feed.php +++ b/includes/Feed.php @@ -92,7 +92,7 @@ class FeedItem { */ public function getUniqueId() { if ( $this->uniqueId ) { - return $this->xmlEncode( $this->uniqueId ); + return $this->xmlEncode( wfExpandUrl( $this->uniqueId, PROTO_CURRENT ) ); } } @@ -141,7 +141,7 @@ class FeedItem { */ public function getLanguage() { global $wgLanguageCode; - return $wgLanguageCode; + return wfBCP47( $wgLanguageCode ); } /**