diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2011-12-03 13:29:22 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-12-03 13:29:22 +0100 |
commit | ca32f08966f1b51fcb19460f0996bb0c4048e6fe (patch) | |
tree | ec04cc15b867bc21eedca904cea9af0254531a11 /includes/api/ApiRsd.php | |
parent | a22fbfc60f36f5f7ee10d5ae6fe347340c2ee67c (diff) |
Update to MediaWiki 1.18.0
* also update ArchLinux skin to chagnes in MonoBook
* Use only css to hide our menu bar when printing
Diffstat (limited to 'includes/api/ApiRsd.php')
-rw-r--r-- | includes/api/ApiRsd.php | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/includes/api/ApiRsd.php b/includes/api/ApiRsd.php index 7bc4722c..f9a4d285 100644 --- a/includes/api/ApiRsd.php +++ b/includes/api/ApiRsd.php @@ -47,7 +47,8 @@ class ApiRsd extends ApiBase { $service = array( 'apis' => $this->formatRsdApiList() ); ApiResult::setContent( $service, 'MediaWiki', 'engineName' ); - ApiResult::setContent( $service, 'http://www.mediawiki.org/', 'engineLink' ); + ApiResult::setContent( $service, 'https://www.mediawiki.org/', 'engineLink' ); + ApiResult::setContent( $service, Title::newMainPage()->getCanonicalUrl(), 'homePageLink' ); $result->setIndexedTagName( $service['apis'], 'api' ); @@ -67,7 +68,7 @@ class ApiRsd extends ApiBase { } public function getDescription() { - return 'Export an RSD schema'; + return 'Export an RSD (Really Simple Discovery) schema'; } protected function getExamples() { @@ -97,10 +98,10 @@ class ApiRsd extends ApiBase { $apis = array( 'MediaWiki' => array( // The API link is required for all RSD API entries. - 'apiLink' => wfExpandUrl( wfScript( 'api' ) ), + 'apiLink' => wfExpandUrl( wfScript( 'api' ), PROTO_CURRENT ), // Docs link is optional, but recommended. - 'docs' => 'http://mediawiki.org/wiki/API', + 'docs' => 'https://www.mediawiki.org/wiki/API', // Some APIs may need a blog ID, but it may be left blank. 'blogID' => '', @@ -160,7 +161,7 @@ class ApiRsd extends ApiBase { } public function getVersion() { - return __CLASS__ . ': $Id: ApiRsd.php 76195 2010-11-06 15:57:15Z btongminh $'; + return __CLASS__ . ': $Id: ApiRsd.php 104449 2011-11-28 15:52:04Z reedy $'; } } @@ -169,12 +170,12 @@ class ApiFormatXmlRsd extends ApiFormatXml { parent::__construct( $main, $format ); $this->setRootElement( 'rsd' ); } - + public function getMimeType() { return 'application/rsd+xml'; } public function getVersion() { - return __CLASS__ . ': $Id: ApiRsd.php 76195 2010-11-06 15:57:15Z btongminh $'; + return __CLASS__ . ': $Id: ApiRsd.php 104449 2011-11-28 15:52:04Z reedy $'; } } |