diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2013-12-08 09:55:49 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2013-12-08 09:55:49 +0100 |
commit | 4ac9fa081a7c045f6a9f1cfc529d82423f485b2e (patch) | |
tree | af68743f2f4a47d13f2b0eb05f5c4aaf86d8ea37 /includes/api/ApiQueryIWLinks.php | |
parent | af4da56f1ad4d3ef7b06557bae365da2ea27a897 (diff) |
Update to MediaWiki 1.22.0
Diffstat (limited to 'includes/api/ApiQueryIWLinks.php')
-rw-r--r-- | includes/api/ApiQueryIWLinks.php | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/includes/api/ApiQueryIWLinks.php b/includes/api/ApiQueryIWLinks.php index fc77b4e6..be539311 100644 --- a/includes/api/ApiQueryIWLinks.php +++ b/includes/api/ApiQueryIWLinks.php @@ -81,8 +81,8 @@ class ApiQueryIWLinks extends ApiQueryBase { $this->addOption( 'ORDER BY', 'iwl_from' . $sort ); } else { $this->addOption( 'ORDER BY', array( - 'iwl_title' . $sort, - 'iwl_from' . $sort + 'iwl_from' . $sort, + 'iwl_title' . $sort )); } } else { @@ -90,9 +90,10 @@ class ApiQueryIWLinks extends ApiQueryBase { if ( count( $this->getPageSet()->getGoodTitles() ) == 1 ) { $this->addOption( 'ORDER BY', 'iwl_prefix' . $sort ); } else { - $this->addOption( 'ORDER BY', array ( + $this->addOption( 'ORDER BY', array( 'iwl_from' . $sort, - 'iwl_prefix' . $sort + 'iwl_prefix' . $sort, + 'iwl_title' . $sort )); } } @@ -192,4 +193,8 @@ class ApiQueryIWLinks extends ApiQueryBase { 'api.php?action=query&prop=iwlinks&titles=Main%20Page' => 'Get interwiki links from the [[Main Page]]', ); } + + public function getHelpUrls() { + return 'https://www.mediawiki.org/wiki/API:Iwlinks'; + } } |