Brian Wolff
cb3a99fd8a
Fix handling of qplimit/qpoffset and cachedtimestamp in QueryPage api module
...
Basically api was thinking qplimit was the offset, and qpoffset was the limit. Also remove an extra ! when checking for the cached timestamp which was stopping the display of cachedtimestamp property in the api output.
I'm going to tag this 1.18 since this module was introduced in 1.18, and I assume we'd want to fix the limit/offset parameter before the wrong behaviour gets released and people depend on it, etc.
2011-09-29 15:16:35 +00:00
Sam Reed
a5628f5734
Based on diff to wikia, set more functions consistently public rather than protected
2011-08-17 22:24:21 +00:00
Roan Kattouw
06d3c6ef2b
Fix r78824 after some misunderstandings in the CR comments. The querypage API module was checking for disabled status and setting the 'disabled' attribute in the output, but would then happily proceed to call doQuery() on a disabled query page.
2011-07-21 18:03:25 +00:00
Sam Reed
e4a6773b73
Remove @return void documentation
...
Add missing error to getPossibleErrors
2011-07-20 11:46:27 +00:00
Antoine Musso
6a8e32e986
Single messages can be passed as strings to Api::dieUsageMsg()
...
Since r88045
2011-05-19 17:51:16 +00:00
Max Semenik
301e940435
Fix typo in description
2011-04-25 13:44:54 +00:00
Chad Horohoe
767fd9aa13
Per CR on r78824 (#c12467): Some query pages are useless/redundant, since we already output them elsewhere in the API, so we shouldn't expose them.
2011-04-18 17:04:50 +00:00
Sam Reed
fa64025161
More parameter documentation
2011-02-19 00:30:18 +00:00
Chad Horohoe
78e92a9eaf
Fix example per r78832 CR
2010-12-29 18:37:08 +00:00
Sam Reed
61dc15dece
Fixup date and uppercase parameter from r78824
2010-12-22 21:50:00 +00:00
Sam Reed
e1bb9e302f
Remove spurious 0 from r78831
2010-12-22 21:12:50 +00:00
Sam Reed
0038f4533b
Add a really basic example for completeness
2010-12-22 21:08:40 +00:00
Sam Reed
edeab50def
Fix trailing whitespace in ApiQueryQueryPage.
...
Add comment noting that the pages are case sensitive
2010-12-22 21:03:51 +00:00
Sam Reed
6309c920dd
Delete all the "API for MediaWiki 1.8+" comments
...
Add since to ApiQueryQueryPage
2010-12-22 20:52:06 +00:00
Roan Kattouw
1e6add8882
(bug 14869) Add API module for accessing QueryPage-based special pages. Took 2.5 years and a flight to England to get this done, but there you go :)
2010-12-22 20:35:37 +00:00