diff options
author | RobinHood70 <robinhood70@live.ca> | 2015-04-07 02:55:31 -0700 |
---|---|---|
committer | Spage <spage@wikimedia.org> | 2015-05-04 08:15:54 +0000 |
commit | 15ecc5a93aec2c49de3fe38990e14095a5725620 (patch) | |
tree | ad236b2bf4b59600cd3816d42d31428ab02212fc /includes/api/ApiQueryBacklinksprop.php | |
parent | 02255540d5344d79d122dd534a77968317fbefe6 (diff) | |
download | mediawikicore-15ecc5a93aec2c49de3fe38990e14095a5725620.tar.gz mediawikicore-15ecc5a93aec2c49de3fe38990e14095a5725620.zip |
Update getHelpUrls() for reworked mw.org API pages
Community members restructured the mediawiki.org API pages, e.g.
the meta allmessages query submodule is no longer in the catch-all
https://www.mediawiki.org/wiki/API:Meta?oldid=1408361#allmessages_.2F_am
but its own https://www.mediawiki.org/wiki/API:Allmessages
The links in the generated API help, e.g.
https://www.mediawiki.org/wiki/Special:ApiHelp/query+allmessages, are no
correct. They're not 404s but they don't take you directly to the
relevant page.
This patch set fixes the getHelpUrls() URLs (and does nothing else).
I tested them all.
Thanks RobinHood70!
Change-Id: Icea94abdd22d1ad468172642a21641e7c5ce2046
Diffstat (limited to 'includes/api/ApiQueryBacklinksprop.php')
-rw-r--r-- | includes/api/ApiQueryBacklinksprop.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/includes/api/ApiQueryBacklinksprop.php b/includes/api/ApiQueryBacklinksprop.php index 8e271e7b9a68..fe77882915d5 100644 --- a/includes/api/ApiQueryBacklinksprop.php +++ b/includes/api/ApiQueryBacklinksprop.php @@ -405,8 +405,7 @@ class ApiQueryBacklinksprop extends ApiQueryGeneratorBase { } public function getHelpUrls() { - $name = $this->getModuleName(); - $prefix = $this->getModulePrefix(); - return "https://www.mediawiki.org/wiki/API:Properties#{$name}_.2F_{$prefix}"; + $name = ucfirst( $this->getModuleName() ); + return "https://www.mediawiki.org/wiki/API:{$name}"; } } |