X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fapi%2FApiRsd.php;h=00ab77bab34ca9489585abc783b5cf20bf2148e9;hp=fdc62a8ea927c6dc9e94eea01c4ad85313dc3627;hb=821a4e84dddf89e903db953246cc638cf97294ad;hpb=64b83bdb3afd0ee4f8fc1893a865409c198e601e diff --git a/includes/api/ApiRsd.php b/includes/api/ApiRsd.php index fdc62a8ea9..00ab77bab3 100644 --- a/includes/api/ApiRsd.php +++ b/includes/api/ApiRsd.php @@ -3,8 +3,6 @@ /** * API for MediaWiki 1.17+ * - * Created on October 26, 2010 - * * Copyright © 2010 Bryan Tong Minh and Brion Vibber * * This program is free software; you can redistribute it and/or modify @@ -122,7 +120,7 @@ class ApiRsd extends ApiBase { 'name' => $name, 'preferred' => wfBoolToStr( $name == 'MediaWiki' ), 'apiLink' => $info['apiLink'], - 'blogID' => isset( $info['blogID'] ) ? $info['blogID'] : '', + 'blogID' => $info['blogID'] ?? '', ]; $settings = []; if ( isset( $info['docs'] ) ) { @@ -151,19 +149,3 @@ class ApiRsd extends ApiBase { 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 ); - } -}