'name' => $name,
'preferred' => wfBoolToStr( $name == 'MediaWiki' ),
'apiLink' => $info['apiLink'],
- 'blogID' => isset( $info['blogID'] ) ? $info['blogID'] : '',
+ 'blogID' => $info['blogID'] ?? '',
];
$settings = [];
if ( isset( $info['docs'] ) ) {
return $outputData;
}
}
-
-class ApiFormatXmlRsd extends ApiFormatXml {
- public function __construct( ApiMain $main, $format ) {
- parent::__construct( $main, $format );
- $this->setRootElement( 'rsd' );
- }
-
- public function getMimeType() {
- return 'application/rsd+xml';
- }
-
- public static function recXmlPrint( $name, $value, $indent, $attributes = [] ) {
- unset( $attributes['_idx'] );
- return parent::recXmlPrint( $name, $value, $indent, $attributes );
- }
-}