Sam Reed
3665c17bcf
* (bug 22764) uselang parameter for action=parse
...
Also add a few full stops to normalise format of Params
2010-03-08 22:32:17 +00:00
Sam Reed
7dc022fd1f
Restore $wgLang in ApiQueryAllmessages if changed during execution
2010-03-08 22:26:59 +00:00
Alexandre Emsenhuber
750a03860f
Fixed some doxygen warnings
2010-03-08 21:11:32 +00:00
Alexandre Emsenhuber
00ed478a33
Fixed some doxygen warnings
2010-03-07 17:26:23 +00:00
Sam Reed
8328c6d619
Fixup r63301 as per Roan comment
...
Still not using an index...
2010-03-06 18:03:05 +00:00
Sam Reed
abe0f5cc07
* (bug 22738) Allow filtering by action type on query=logevent
...
Needs patrol fixing (but not an api problem)
2010-03-05 23:21:38 +00:00
Roan Kattouw
d0045bcd78
API: Don't unstub $wgContLang in ApiBase::getValidNamespaces()
2010-02-26 18:24:58 +00:00
Jack Phoenix
7ced9bc569
API: fix copyright symbol, coding style cleanup, more braces
2010-02-26 13:18:56 +00:00
X!
0543d7bdce
Whoops, committed wrong version
2010-02-24 17:06:19 +00:00
X!
fe72f84205
PARAM_TYPE 'user' now works for multi-values
2010-02-24 17:04:21 +00:00
Jack Phoenix
eba6c94002
API: fix copyright symbol, coding style cleanup, more braces
2010-02-24 14:45:19 +00:00
Jack Phoenix
7fa78fefa9
API: fix copyright symbol, coding style cleanup, more braces
2010-02-24 14:00:23 +00:00
Jack Phoenix
96b4f302af
API: fix copyright symbol, coding style cleanup, more braces
2010-02-24 13:34:11 +00:00
Jack Phoenix
c286869e38
API: fix copyright symbol, coding style cleanup, more braces
2010-02-23 18:05:46 +00:00
Jack Phoenix
604906deb5
API: coding style cleanup, fix copyright symbol, more braces
2010-02-23 12:30:23 +00:00
Sam Reed
9fcab31fe8
Fixup whitespace
2010-02-22 22:44:41 +00:00
Jack Phoenix
fe866da9a6
ApiExpandTemplates.php: fix copyright symbol, coding style tweaks, more braces
2010-02-22 20:27:06 +00:00
Jack Phoenix
a675c23a11
ApiMove.php: fix copyright symbol, spacing & coding style tweaks, more braces
2010-02-22 12:25:53 +00:00
Jack Phoenix
582afa7e2a
ApiEmailUser.php: fix copyright symbol, spacing and coding style tweaks, spaces -> tabs, trimmed off trailing whitespace
2010-02-22 12:20:54 +00:00
Jack Phoenix
c6f2480903
ApiEditPage.php: fix copyright symbol, spacing and coding style cleanup, more braces
2010-02-22 12:18:42 +00:00
Mark A. Hershberger
ad75e1411c
ws-only cleanup
2010-02-22 03:34:56 +00:00
Mark A. Hershberger
c871b75a3e
follow up r62231, r61779, r62175
...
* Fix up messages
* For new FileRepo::append(), use flags to determine whether to delete or not
* Add more error checking for appending
* Fix a couple of places in Revision.php and LogPage.php where DB errors were produced when comment was null
* Remove bogus checking for !$comment, etc on the DONE phase of chunked uploading
* Don't pretend to return a value when raising an exception
* Add more tests for chunked uploads
* Verify that Status::getErrorsArray() (at least where it is used in ApiUpload::execute()) returns an array that we can pass to dieUsageMessage()
* Ensure that checkWarnings(), etc work only on the complete file
2010-02-22 02:15:30 +00:00
Jack Phoenix
8d7fec1acc
ApiDisabled.php: fix copyright symbol, coding style tweaks
2010-02-21 18:09:00 +00:00
Jack Phoenix
ab5436aa56
ApiBlock.php: spacing & coding style tweaks, more braces, fixed copyright symbol
2010-02-21 12:32:46 +00:00
Jack Phoenix
4228459b24
ApiBase.php: coding style cleanup, added more braces, trimmed trailing spaces, changed copyright symbol to the proper one
2010-02-20 19:39:51 +00:00
Sam Reed
72582d7f4c
r65299 c5894 followup
...
Move isset check of gettoken upto level of $salt !== false. If gettoken is set, the module isn't going to do anything else (and therefore no point seeing if there is a token set, let alone attempting to validate it)
2010-02-19 19:44:28 +00:00
Sam Reed
4365dc9c75
Fixup result_array
2010-02-19 18:28:52 +00:00
Jack Phoenix
a30a49410f
API deletion module: trim trailing spaces, tweak coding style, change copyright symbol to a proper one, change "else if" to "elseif"
2010-02-19 12:54:09 +00:00
Sam Reed
59e656c23b
Stylize on Api
...
Manual layout improvements in ApiFeedWatchlist
2010-02-19 01:25:57 +00:00
Jack Phoenix
c784b7d0a3
API login module: coding style cleanup, remove stray semicolon, use proper copyright symbol
2010-02-18 14:53:30 +00:00
Sam Reed
41ba6ce60f
Minor fixup to api/ApiEditPage.php to remove getMaxArticleSize function
2010-02-16 22:01:38 +00:00
Sam Reed
878c7da630
Followup to r62557 as per Roans comment
2010-02-16 21:59:16 +00:00
Sam Reed
64f884d74f
Decomment parts accidentally commited commented in r62557
2010-02-16 01:29:58 +00:00
Sam Reed
eb9aa1686c
Followup to r62557
...
Add array( 'sessionfailure' ) to getPossibleErrors for token using modules (missed adding when removing from individual modules!)
2010-02-16 01:27:19 +00:00
Sam Reed
7478ad3576
Remove a couple of duplicated errors from ApiEditPage getPossibleErrors
...
Unindent one level in ApiMain substituteResultWithError
2010-02-15 23:56:09 +00:00
Sam Reed
0e8b0b41ac
Refactor requiresToken to getTokenSalt - Returns salt if exists, null if no salt, else false if no token required
...
Move sessionfailure (token validation checking) up a couple of levels
Part of bug 21991
Followup to r62482 and r62504
2010-02-15 23:53:43 +00:00
Roan Kattouw
d555e90cea
Fix broken comma logic in r62486
2010-02-15 21:34:31 +00:00
Roan Kattouw
3a953c8e30
API performance fixes: avoid unstubbing $wgContLang and $wgUser
2010-02-15 20:50:21 +00:00
Roan Kattouw
f02557a424
API: Redo r62540 for all modules, easier than I first imagined
2010-02-15 20:42:43 +00:00
Roan Kattouw
e99771b884
API: Optimize read rights check in opensearch so $wgUser doesn't get unstubbed if $wgGroupPermissions['*']['read'] is true
2010-02-15 20:20:00 +00:00
Roan Kattouw
f93de570e9
Whitespace fixes for r62532
2010-02-15 18:47:32 +00:00
Michael Dale
25b294ec4e
* helps address bug 22453, Enables the api to return PLURAL transforms.
...
* Adds support for parser to be run on msg keys with argument substitution.
2010-02-15 17:56:55 +00:00
Mark A. Hershberger
293641976a
follow-up r62498 — use the new functionality of requireOnlyOneParameter of allowing “false” defaults
2010-02-15 17:50:35 +00:00
Roan Kattouw
2add870ee8
Fix r62511: always select ipb_auto field
2010-02-15 12:20:52 +00:00
Roan Kattouw
4d27e202cf
API: Don't display range info for autoblocks (effectively disclosing the IP address) in list=blocks, and don't list autoblocks when queried for a certain user's or IP's blocks. These constraints mirror the ones used by Special:Ipblocklist
2010-02-15 12:13:01 +00:00
Raimond Spekking
b1aba70d75
Fix fir r62482: PHP Notice: Undefined index: token in /www/w/includes/api/ApiMain.php on line 415
2010-02-15 09:22:11 +00:00
Mark A. Hershberger
26a4587d80
follow up r62353 Make ApiBase::requireOnlyOneParameter() accept parameters that are set, but false. This means that you can pass in more than one parameter, as long as it is the same as the default (false). Have to do it this way since we'd like to default boolean parameters to false in getAllowedParams() but by the time requireOnlyOneParameter() is called, the defaults are set, so we can't tell the difference between passing in a parameter set to the default and just getting the defaults.
2010-02-15 07:06:49 +00:00
Tim Starling
278a489ffe
Search suggestion API requests make up a substantial portion of our total apache load and thus deserve some optimisation:
...
* Made the cache expiry time configurable via $wgSearchSuggestCacheExpiry
* Removed must-revalidate from the Cache-Control of such requests. Introduced a generic interface to ApiMain for doing that.
2010-02-14 23:52:45 +00:00
Sam Reed
80f9448690
Start of "Bug 21991 - Move common query parameter (uc, rc) validation, token requiringness/checking to ApiBase/Similar"
...
Move token requringness check to the ApiMain
Adding an exception if we're using "gettoken" (block/unblock)
Remove array( 'missingparam', 'token' ), from the getPossibleErrors of modules that set requireToken method to true
2010-02-14 22:20:27 +00:00
Sam Reed
bd1a643e6e
Change layout of the mustBePosted format to standardise it
2010-02-14 21:12:11 +00:00