*/
public function getUniqueId() {
if ( $this->uniqueId ) {
- return $this->xmlEncode( $this->uniqueId );
+ return $this->xmlEncode( wfExpandUrl( $this->uniqueId, PROTO_CURRENT ) );
}
}
*/
public function getLanguage() {
global $wgLanguageCode;
- return $wgLanguageCode;
+ return wfBCP47( $wgLanguageCode );
}
/**