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/ApiQueryLinks.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/ApiQueryLinks.php')
-rw-r--r-- | includes/api/ApiQueryLinks.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/api/ApiQueryLinks.php b/includes/api/ApiQueryLinks.php index 3bd371443361..d7b85c93bcb4 100644 --- a/includes/api/ApiQueryLinks.php +++ b/includes/api/ApiQueryLinks.php @@ -42,13 +42,13 @@ class ApiQueryLinks extends ApiQueryGeneratorBase { $this->table = 'pagelinks'; $this->prefix = 'pl'; $this->titlesParam = 'titles'; - $this->helpUrl = 'https://www.mediawiki.org/wiki/API:Properties#links_.2F_pl'; + $this->helpUrl = 'https://www.mediawiki.org/wiki/API:Links'; break; case self::TEMPLATES: $this->table = 'templatelinks'; $this->prefix = 'tl'; $this->titlesParam = 'templates'; - $this->helpUrl = 'https://www.mediawiki.org/wiki/API:Properties#templates_.2F_tl'; + $this->helpUrl = 'https://www.mediawiki.org/wiki/API:Templates'; break; default: ApiBase::dieDebug( __METHOD__, 'Unknown module name' ); |