X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiRsd.php;h=f28e610fce1b18e49e58789fc0d267009bde72af;hb=6d9946294737f21d939c1addf81496ed679beb24;hp=a2771a0c4f5cde82f401b704f648962c81943eaf;hpb=f93d34fb756b3271cc13b5581316cefa66de5013;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiRsd.php b/includes/api/ApiRsd.php index a2771a0c4f..f28e610fce 100644 --- a/includes/api/ApiRsd.php +++ b/includes/api/ApiRsd.php @@ -51,21 +51,10 @@ class ApiRsd extends ApiBase { return new ApiFormatXmlRsd( $this->getMain(), 'xml' ); } - public function getAllowedParams() { - return array(); - } - - public function getParamDescription() { - return array(); - } - - public function getDescription() { - return 'Export an RSD (Really Simple Discovery) schema.'; - } - - public function getExamples() { + protected function getExamplesMessages() { return array( - 'api.php?action=rsd' + 'action=rsd' + => 'apihelp-rsd-example-simple', ); } @@ -110,7 +99,7 @@ class ApiRsd extends ApiBase { ) ), ); - wfRunHooks( 'ApiRsdServiceApis', array( &$apis ) ); + Hooks::run( 'ApiRsdServiceApis', array( &$apis ) ); return $apis; }