Sam Reed [Mon, 15 Feb 2010 23:56:09 +0000 (23:56 +0000)]
Remove a couple of duplicated errors from ApiEditPage getPossibleErrors
Unindent one level in ApiMain substituteResultWithError
Mark A. Hershberger [Mon, 15 Feb 2010 23:54:02 +0000 (23:54 +0000)]
Provide a few more tests for bug #22501
Sam Reed [Mon, 15 Feb 2010 23:53:43 +0000 (23:53 +0000)]
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
Alexandre Emsenhuber [Mon, 15 Feb 2010 22:06:18 +0000 (22:06 +0000)]
Fixed some doxygen warnings
Chad Horohoe [Mon, 15 Feb 2010 21:53:30 +0000 (21:53 +0000)]
Rm 3 unused $wgDBprefixes
Roan Kattouw [Mon, 15 Feb 2010 21:34:31 +0000 (21:34 +0000)]
Fix broken comma logic in r62486
Roan Kattouw [Mon, 15 Feb 2010 20:50:21 +0000 (20:50 +0000)]
API performance fixes: avoid unstubbing $wgContLang and $wgUser
Roan Kattouw [Mon, 15 Feb 2010 20:42:43 +0000 (20:42 +0000)]
API: Redo r62540 for all modules, easier than I first imagined
Raimond Spekking [Mon, 15 Feb 2010 20:22:16 +0000 (20:22 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-02-15 20:00 UTC)
Mark A. Hershberger [Mon, 15 Feb 2010 20:20:14 +0000 (20:20 +0000)]
Tidy up phpdoc to match code
Roan Kattouw [Mon, 15 Feb 2010 20:20:00 +0000 (20:20 +0000)]
API: Optimize read rights check in opensearch so $wgUser doesn't get unstubbed if $wgGroupPermissions['*']['read'] is true
Mark A. Hershberger [Mon, 15 Feb 2010 20:18:05 +0000 (20:18 +0000)]
fixes #22501 follow up r61101 remove superfluous, buggy code that was over-rideing displaytitle
Siebrand Mazeland [Mon, 15 Feb 2010 20:08:39 +0000 (20:08 +0000)]
Revert r62421. Removing "set_time_limit( 0 );" causes all kinds of time out issues running command line scripts in both maintenance/ and with cli scripts in extensions.
Roan Kattouw [Mon, 15 Feb 2010 18:47:32 +0000 (18:47 +0000)]
Whitespace fixes for r62532
Michael Dale [Mon, 15 Feb 2010 17:56:55 +0000 (17:56 +0000)]
* helps address bug 22453, Enables the api to return PLURAL transforms.
* Adds support for parser to be run on msg keys with argument substitution.
Mark A. Hershberger [Mon, 15 Feb 2010 17:50:35 +0000 (17:50 +0000)]
follow-up r62498 — use the new functionality of requireOnlyOneParameter of allowing “false” defaults
Roan Kattouw [Mon, 15 Feb 2010 12:20:52 +0000 (12:20 +0000)]
Fix r62511: always select ipb_auto field
Roan Kattouw [Mon, 15 Feb 2010 12:13:01 +0000 (12:13 +0000)]
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
Conrad Irwin [Mon, 15 Feb 2010 09:34:51 +0000 (09:34 +0000)]
clean r61713 (and r61710) per code review
Raimond Spekking [Mon, 15 Feb 2010 09:22:11 +0000 (09:22 +0000)]
Fix fir r62482: PHP Notice: Undefined index: token in /www/w/includes/api/ApiMain.php on line 415
Max Semenik [Mon, 15 Feb 2010 08:40:02 +0000 (08:40 +0000)]
Unit tests: don't fail miserably if we don't have CDB support
Mark A. Hershberger [Mon, 15 Feb 2010 08:36:10 +0000 (08:36 +0000)]
follow up r61101 for special pages like Special:Version and Special:RecentChanges
Mark A. Hershberger [Mon, 15 Feb 2010 07:10:58 +0000 (07:10 +0000)]
follow up r62498 tests for the requireOnlyOneParameter() change
Mark A. Hershberger [Mon, 15 Feb 2010 07:06:49 +0000 (07:06 +0000)]
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.
Max Semenik [Mon, 15 Feb 2010 05:49:10 +0000 (05:49 +0000)]
Was it supposed to be a comma instead of dot? :)
Max Semenik [Mon, 15 Feb 2010 05:41:19 +0000 (05:41 +0000)]
Parser tests: output article name in duplicate article message
Tim Starling [Sun, 14 Feb 2010 23:52:45 +0000 (23:52 +0000)]
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.
Sam Reed [Sun, 14 Feb 2010 22:20:27 +0000 (22:20 +0000)]
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
Siebrand Mazeland [Sun, 14 Feb 2010 22:07:30 +0000 (22:07 +0000)]
Random indentation and code formatting updates. No functional changes.
Sam Reed [Sun, 14 Feb 2010 21:36:20 +0000 (21:36 +0000)]
* (bug 18771) List possible errors in action=paraminfo
Bug isn't quite complete, but majorly implemented. Marking in RELEASE-NOTES for reference
Alexandre Emsenhuber [Sun, 14 Feb 2010 21:23:38 +0000 (21:23 +0000)]
Fixed some doxygen warnings
Sam Reed [Sun, 14 Feb 2010 21:12:11 +0000 (21:12 +0000)]
Change layout of the mustBePosted format to standardise it
Siebrand Mazeland [Sun, 14 Feb 2010 19:56:37 +0000 (19:56 +0000)]
Rebuild MessagesLzz.php and add 'tr' as fallback.
Raimond Spekking [Sun, 14 Feb 2010 19:44:39 +0000 (19:44 +0000)]
Add Laz language (lzz) per request of GerardM
Raimond Spekking [Sun, 14 Feb 2010 19:33:39 +0000 (19:33 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-02-14 19:00 UTC)
Sam Reed [Sun, 14 Feb 2010 15:19:45 +0000 (15:19 +0000)]
Followup to r62465, should be in an array
Sam Reed [Sun, 14 Feb 2010 15:16:09 +0000 (15:16 +0000)]
Move ( 'code' => 'show', 'info' => 'Incorrect parameter - mutually exclusive values may not be supplied' ) to messageMap
Sam Reed [Sun, 14 Feb 2010 14:29:24 +0000 (14:29 +0000)]
Fixup spaces to tabs from r62404
Roan Kattouw [Sun, 14 Feb 2010 13:37:14 +0000 (13:37 +0000)]
Whitespace fixes for r62402
Raimond Spekking [Sun, 14 Feb 2010 11:36:40 +0000 (11:36 +0000)]
Follow-up r62358: Wrap warning message into a div with the generic "error" and a specific "mw-moveuserpage-warning" class
Platonides [Sat, 13 Feb 2010 23:58:30 +0000 (23:58 +0000)]
Follow up r62436 comments.
s/Title::newFromUrl/Title::newFromURL/
All these usages should be reviewed. Make it easy to grep using the canonical form.
Additionally fix the typo.
Raimond Spekking [Sat, 13 Feb 2010 19:20:32 +0000 (19:20 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-02-13 19:00 UTC)
Alexandre Emsenhuber [Sat, 13 Feb 2010 17:09:52 +0000 (17:09 +0000)]
Fixed some doxygen warnings
Conrad Irwin [Sat, 13 Feb 2010 14:41:04 +0000 (14:41 +0000)]
Fix for <poem> after r62416
Platonides [Sat, 13 Feb 2010 13:46:29 +0000 (13:46 +0000)]
parserTests.txt shall be opened in text mode.
Followup of r62006 which broke parser tests on windows (crlf line endings).
Chad Horohoe [Sat, 13 Feb 2010 03:27:47 +0000 (03:27 +0000)]
Don't need to set time limit here, already did in setup(), memory_limit still needs calling this late, user might have overriden this in LocalSettings
Chad Horohoe [Sat, 13 Feb 2010 02:56:18 +0000 (02:56 +0000)]
Output page title along with no revisions (just like we do when there are revs to import). Looks confusing seeing multiple "All revisions were previously imported" entries
Shinjiman [Sat, 13 Feb 2010 02:33:39 +0000 (02:33 +0000)]
Localisation updates Cantonese, Chinese and Literary Chinese
Chad Horohoe [Sat, 13 Feb 2010 02:29:59 +0000 (02:29 +0000)]
Drop ancient PHP4 wrapper for cloning, completely unused
Conrad Irwin [Sat, 13 Feb 2010 02:22:14 +0000 (02:22 +0000)]
Deprecate old undocumented workaround to bug 2257 (setTransparentTagHook)
Sam Reed [Sat, 13 Feb 2010 01:41:37 +0000 (01:41 +0000)]
Stylize API files
Sam Reed [Sat, 13 Feb 2010 01:38:12 +0000 (01:38 +0000)]
4 More dieUsage calls
Bar some from ApiBase.. These are done..
Aaron Schulz [Sat, 13 Feb 2010 01:37:29 +0000 (01:37 +0000)]
Move this to one line to add space back after period. If these is to be split into 2 lines, then the msg() call needs changing to display correctly.
Sam Reed [Sat, 13 Feb 2010 01:28:26 +0000 (01:28 +0000)]
dieUsage getPossibleErrors in ApiQuerySearch and ApiQueryRevisions
Sam Reed [Sat, 13 Feb 2010 01:24:00 +0000 (01:24 +0000)]
Fix fail in ApiEditPage.php
Sam Reed [Sat, 13 Feb 2010 01:21:52 +0000 (01:21 +0000)]
Complete dieUsage errors in 7 more Api files
Sam Reed [Sat, 13 Feb 2010 01:05:14 +0000 (01:05 +0000)]
Complete dieUsage errors in 6 more Api files
Sam Reed [Sat, 13 Feb 2010 00:50:45 +0000 (00:50 +0000)]
And an erroneous )
Sam Reed [Sat, 13 Feb 2010 00:49:53 +0000 (00:49 +0000)]
Rem erroneous bracket, followup to r62404
Sam Reed [Sat, 13 Feb 2010 00:48:31 +0000 (00:48 +0000)]
Implement 9 modules dieUsage errors
Sam Reed [Sat, 13 Feb 2010 00:28:27 +0000 (00:28 +0000)]
Rest of dieUsageMsg in getPossibleErrors
Sam Reed [Sat, 13 Feb 2010 00:09:05 +0000 (00:09 +0000)]
Start of blanket coverage of dieUsageMsg in getPossibleErrors
Only basic ones done.
Couple of other modules done manually
Raimond Spekking [Fri, 12 Feb 2010 21:45:14 +0000 (21:45 +0000)]
* Truncate summary of page moves in revision comment field to avoid broken multibyte characters
Example: http://de.wikipedia.org/w/index.php?title=Benutzer_Diskussion:Meister_Eiskalt/Babel3&action=history
Alexandre Emsenhuber [Fri, 12 Feb 2010 21:37:22 +0000 (21:37 +0000)]
Fixed a doxygen warning
Raimond Spekking [Fri, 12 Feb 2010 19:47:22 +0000 (19:47 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-02-12 19:00 UTC)
Rotem Liss [Fri, 12 Feb 2010 19:07:46 +0000 (19:07 +0000)]
Localization update for he.
Siebrand Mazeland [Fri, 12 Feb 2010 14:09:42 +0000 (14:09 +0000)]
Remove debug logging introduced in r62354
Tobias [Fri, 12 Feb 2010 11:40:41 +0000 (11:40 +0000)]
sort of fixing bug 14592: show warning when moving a user page that the user will not be renamed
Mark A. Hershberger [Fri, 12 Feb 2010 06:44:16 +0000 (06:44 +0000)]
various eol whitespace now instead of when someone needs to do CR
Mark A. Hershberger [Fri, 12 Feb 2010 06:28:03 +0000 (06:28 +0000)]
Final(?) changes to enable chunked uploading.
Tim Starling [Fri, 12 Feb 2010 05:17:12 +0000 (05:17 +0000)]
Don't format old_id ranges in scientific (%E) notation.
Chad Horohoe [Fri, 12 Feb 2010 01:12:52 +0000 (01:12 +0000)]
(bug 17947) Use current date/time on Special:Preferences rather than Wikipedia day. It has been pointed out that an arbitrary date can be confusing for users on a different calendar system. Wikipedia day is cute, but not useful.
Sam Reed [Thu, 11 Feb 2010 23:09:38 +0000 (23:09 +0000)]
Simplification as per Bryan on r62339 comment
Sam Reed [Thu, 11 Feb 2010 22:28:30 +0000 (22:28 +0000)]
Cater for some more errors in ApiBase.php
Sam Reed [Thu, 11 Feb 2010 22:25:31 +0000 (22:25 +0000)]
Remove old/deprecated $this->getMain()->isWriteMode(); from ApiUpload
Sam Reed [Thu, 11 Feb 2010 22:22:20 +0000 (22:22 +0000)]
Fix r62331 - If we renamed a method, we need to to it everywhere!
Sam Reed [Thu, 11 Feb 2010 22:18:16 +0000 (22:18 +0000)]
$this->mModuleName to $this->getModuleName()
Sam Reed [Thu, 11 Feb 2010 22:06:45 +0000 (22:06 +0000)]
Update code documentation with Bryans help for r62282 and r62331
Sam Reed [Thu, 11 Feb 2010 21:53:57 +0000 (21:53 +0000)]
Followup to bryans comment for r62328
Rename possibleErrors to getPossibleErrors
Sam Reed [Thu, 11 Feb 2010 21:51:15 +0000 (21:51 +0000)]
Move mustBePosted error into messageMap
Switch call to dieUsage to dieUsageMsg
Sam Reed [Thu, 11 Feb 2010 21:34:35 +0000 (21:34 +0000)]
More of bug 18771 - List possible errors in action=paraminfo
Followup to comments of r62282
Rotem Liss [Thu, 11 Feb 2010 21:27:26 +0000 (21:27 +0000)]
Localization update for he.
Raimond Spekking [Thu, 11 Feb 2010 21:21:22 +0000 (21:21 +0000)]
Simplify a bit per Platonides CR mediawiki.org/wiki/Special:Code/MediaWiki/61661#c5509
Raimond Spekking [Thu, 11 Feb 2010 19:52:38 +0000 (19:52 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-02-11 19:30 UTC)
Aryeh Gregor [Thu, 11 Feb 2010 17:28:19 +0000 (17:28 +0000)]
Another MonoBook whitespace fix
Aryeh Gregor [Thu, 11 Feb 2010 17:25:10 +0000 (17:25 +0000)]
War on xml:lang
There is no reason to use this in HTML in addition to the lang
attribute. No spec requires it (AFAIK) and it's completely redundant.
Aryeh Gregor [Thu, 11 Feb 2010 17:25:03 +0000 (17:25 +0000)]
Avoid silly markup like <ul >
Alexandre Emsenhuber [Thu, 11 Feb 2010 14:57:43 +0000 (14:57 +0000)]
Whitespaces fixes
Emil Podlaszewski [Thu, 11 Feb 2010 14:17:22 +0000 (14:17 +0000)]
individual message cache entries should start with ' ', also in memcached
Alexandre Emsenhuber [Thu, 11 Feb 2010 12:33:17 +0000 (12:33 +0000)]
Implement keys() for APCBagOStuff
Tim Starling [Thu, 11 Feb 2010 11:49:19 +0000 (11:49 +0000)]
A script for doing full scans of the text table and presenting some resulting statistics about storage types.
Mark A. Hershberger [Thu, 11 Feb 2010 06:14:15 +0000 (06:14 +0000)]
Make sure Firefogg gets the json it needs.
Mark A. Hershberger [Thu, 11 Feb 2010 05:35:21 +0000 (05:35 +0000)]
follow-up r61355
Actually test UploadChunks code against Firefogg. Uploads work, but
feedback on the Firefogg side seems not too. Also, Firefogg makes a
complete upload, but then attempts more uploads.
Aryeh Gregor [Thu, 11 Feb 2010 02:14:43 +0000 (02:14 +0000)]
Fix whitespace in Monobook output
Lots of craziness here. Mainly random or excessive indentation, and
missing newlines (the latter due to the fact that a newline after ?> is
dropped). The HTML looks a lot prettier now. There are still some
annoying bits like <ul > that could be fixed.
Sam Reed [Thu, 11 Feb 2010 01:13:45 +0000 (01:13 +0000)]
Start implementation of bug 18771 - List possible errors in action=paraminfo
Base has empty array() returning method, ApiBlock has implementation of possibleErrors from code above (possibly not complete)
Can be finished incrementally, so serves as a review point for Roan
Aryeh Gregor [Wed, 10 Feb 2010 23:02:06 +0000 (23:02 +0000)]
Add comment for r62191
Aryeh Gregor [Wed, 10 Feb 2010 21:56:59 +0000 (21:56 +0000)]
Move some new features from the list of fixed bugs
Follow-up to r62194.
Alexandre Emsenhuber [Wed, 10 Feb 2010 21:42:31 +0000 (21:42 +0000)]
Fixed some doxygen warnings
Raimond Spekking [Wed, 10 Feb 2010 21:40:49 +0000 (21:40 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-02-09 21:30 UTC)
Alexandre Emsenhuber [Wed, 10 Feb 2010 20:26:07 +0000 (20:26 +0000)]
Fixed E_STRICT errors about method signatures not matching