summaryrefslogtreecommitdiff
path: root/includes/api/ApiRsd.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2014-12-27 15:41:37 +0100
committerPierre Schmitz <pierre@archlinux.de>2014-12-31 11:43:28 +0100
commitc1f9b1f7b1b77776192048005dcc66dcf3df2bfb (patch)
tree2b38796e738dd74cb42ecd9bfd151803108386bc /includes/api/ApiRsd.php
parentb88ab0086858470dd1f644e64cb4e4f62bb2be9b (diff)
Update to MediaWiki 1.24.1
Diffstat (limited to 'includes/api/ApiRsd.php')
-rw-r--r--includes/api/ApiRsd.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/includes/api/ApiRsd.php b/includes/api/ApiRsd.php
index d219c91c..a2771a0c 100644
--- a/includes/api/ApiRsd.php
+++ b/includes/api/ApiRsd.php
@@ -60,7 +60,7 @@ class ApiRsd extends ApiBase {
}
public function getDescription() {
- return 'Export an RSD (Really Simple Discovery) schema';
+ return 'Export an RSD (Really Simple Discovery) schema.';
}
public function getExamples() {
@@ -69,6 +69,10 @@ class ApiRsd extends ApiBase {
);
}
+ public function isReadMode() {
+ return false;
+ }
+
/**
* Builds an internal list of APIs to expose information about.
* Normally this only lists the MediaWiki API, with its base URL,
@@ -107,6 +111,7 @@ class ApiRsd extends ApiBase {
),
);
wfRunHooks( 'ApiRsdServiceApis', array( &$apis ) );
+
return $apis;
}
@@ -149,12 +154,13 @@ class ApiRsd extends ApiBase {
}
$outputData[] = $data;
}
+
return $outputData;
}
}
class ApiFormatXmlRsd extends ApiFormatXml {
- public function __construct( $main, $format ) {
+ public function __construct( ApiMain $main, $format ) {
parent::__construct( $main, $format );
$this->setRootElement( 'rsd' );
}