Roan Kattouw [Thu, 25 Sep 2008 15:27:04 +0000 (15:27 +0000)]
Followup to r41257: don't give out a token when we're in JSON callback mode
Roan Kattouw [Thu, 25 Sep 2008 15:20:37 +0000 (15:20 +0000)]
API: Added uiprop=preferencestoken to meta=userinfo, to retrieve the token for chaning one's preferences through Special:Preferences (and possibly through a future API module if and when the preferences system doesn't suck so much anymore).
Roan Kattouw [Thu, 25 Sep 2008 14:50:09 +0000 (14:50 +0000)]
(bug 15706) Empty values for apprtype and apprlevel are now silently ignored rather than causing an exception
Roan Kattouw [Thu, 25 Sep 2008 14:23:24 +0000 (14:23 +0000)]
(bug 15673) Add indentation and newlines to format=wddxfm output:
* Like the JSON formatter, use our own WDDX formatter when PHP's is not available or the user asked for pretty output (PHP's doesn't do indentation)
* Don't prettify when our own formatter is used because PHP's is not avaiable
* Detect regular arrays (with sequential integer keys) and use <array> for them, rather than using <struct> for all arrays. PHP's formatter does this as well. This change should make our WDDX formatter's output identical to PHP's
Rotem Liss [Thu, 25 Sep 2008 13:05:56 +0000 (13:05 +0000)]
Localization update.
Siebrand Mazeland [Thu, 25 Sep 2008 12:01:45 +0000 (12:01 +0000)]
Fix spelling
Siebrand Mazeland [Thu, 25 Sep 2008 11:59:47 +0000 (11:59 +0000)]
Add messages from r41248
Matt Johnston [Thu, 25 Sep 2008 11:45:26 +0000 (11:45 +0000)]
(bug 8440) Allow preventing blocked users from editing their talk pages
* Adds database field to ipblocks table, ipb_allow_usertalk, storing whether or not the user can edit their own talk page. Defaults to 0 to coincide with the default value of $wgBlockAllowsUTEdit.
* Recommended to update all current blocks to have a allow_usertalk value of whatever the current setting is
* Retasks $wgBlockAllowsUTEdit to be the default value of the field in the blocking screen - unless a sysop changes the checkbox, will use whatever that variable is set to.
Siebrand Mazeland [Thu, 25 Sep 2008 10:46:29 +0000 (10:46 +0000)]
Fixes in recently added messages, also register them.
Tim Starling [Thu, 25 Sep 2008 10:15:19 +0000 (10:15 +0000)]
Re r41198: if you're going to break the interface, you may as well do it properly. Rather than Article::doEdit() returning some random fragment of data that your current application requires, how about we have it return a general, extensible object?
Also:
* Fixed EDIT_NEW on existing article to return an error status instead of throw a DB exception
* Fixed a bug dating from MW 1.5 whereby there's a short interval where an edit conflict can be missed, and an edit overwritten. See comment before updateRevisionOn() call.
* Reduced some indenting levels using early returns
Aaron Schulz [Thu, 25 Sep 2008 06:33:58 +0000 (06:33 +0000)]
Break some long lines
Alex Z [Thu, 25 Sep 2008 02:08:59 +0000 (02:08 +0000)]
* (bug 15701) Protection form was too wide for some browsers as 2 columns, switching to 1 column format.
* Move the "unlock move permissions" checkbox to a more logical place with the options for move protection, instead of with the cascading checkbox.
Aaron Schulz [Wed, 24 Sep 2008 20:30:10 +0000 (20:30 +0000)]
* Rename randomInsert() to insertToDefault()
* Use insertToDefault() to insert revisions (talked to brion on this)
Aaron Schulz [Wed, 24 Sep 2008 18:38:25 +0000 (18:38 +0000)]
Add insertRandom() with failover back. Currently not used just yet.
Brion Vibber [Wed, 24 Sep 2008 18:09:22 +0000 (18:09 +0000)]
Revert some recent ES-related changes -- they made behavior much worse when we encountered problems with site_stats updates hanging and stacking up extra open ES connections.
r41230
r41229
r41093
r41091
r41092
r41086
r41063
r40696
Also reverted r41231 which no longer applies
Aaron Schulz [Wed, 24 Sep 2008 18:00:25 +0000 (18:00 +0000)]
Self-revert and re-add transactions here. Sacrifices some atomicity for less transaction time.
Aaron Schulz [Wed, 24 Sep 2008 17:28:55 +0000 (17:28 +0000)]
Another fix for r41086. Don't keep retrying server if connection fails.
Aaron Schulz [Wed, 24 Sep 2008 16:13:50 +0000 (16:13 +0000)]
Uncomment out needed code, PN2 not wanting to save :/
Aaron Schulz [Wed, 24 Sep 2008 16:09:06 +0000 (16:09 +0000)]
Revert untested code change from r41086. Don't call methods on non-objects, the fatal will stop even with the error catching.
Aaron Schulz [Wed, 24 Sep 2008 15:02:02 +0000 (15:02 +0000)]
* Preserve protection on move for original title (now redirect) (bug 10527)
* Add a protection log entry to the new title on page move. Would be nice to have log_params set here too. (bug 8296)
Aaron Schulz [Wed, 24 Sep 2008 13:49:48 +0000 (13:49 +0000)]
Remove commented out code
Aaron Schulz [Wed, 24 Sep 2008 11:53:03 +0000 (11:53 +0000)]
Shorten expiry box
Tim Starling [Wed, 24 Sep 2008 09:44:45 +0000 (09:44 +0000)]
Fixes for r41154 and r41155:
* Boolean parameters are widely accepted to reduce readability. Replaced the new boolean parameters with class constant parameters instead.
* Re-added Revision::revText(), for backwards compatibility
* The getUser()/getUserText() changes near line 1223 of SpecialUndelete.php were incorrect, $file is an ArchivedFile not a Revision, and doesn't have any $isPublic parameters.
Tim Starling [Wed, 24 Sep 2008 08:46:18 +0000 (08:46 +0000)]
Fix docs for r41150, remove commented-out code, remove superfluous brackets in "new" expressions.
Tim Starling [Wed, 24 Sep 2008 08:36:44 +0000 (08:36 +0000)]
Fix unnecessary GlobalFunctions.php bloat from r41148
Tim Starling [Wed, 24 Sep 2008 08:17:35 +0000 (08:17 +0000)]
* Add a simple log demultiplexer, written in python, for low-volume MediaWiki logs
* in wfErrorLog(): clean up log text so that it works properly with the multiplexer
Tim Starling [Wed, 24 Sep 2008 07:11:41 +0000 (07:11 +0000)]
Implemented UDP logging.
Rotem Liss [Wed, 24 Sep 2008 04:14:49 +0000 (04:14 +0000)]
Localization update for he.
Alexandre Emsenhuber [Tue, 23 Sep 2008 18:23:09 +0000 (18:23 +0000)]
Warning: ini_set() [ref.outcontrol]: Cannot change zlib.output_compression - headers already sent in profileinfo.php on line 58
Aaron Schulz [Tue, 23 Sep 2008 18:20:50 +0000 (18:20 +0000)]
* Make Article::doEdit() return the revId, not just true/false. Make the article rollback stuff use this rather than 'next' to avoid slave usage for rollback diff. (bug 15672)
Raimond Spekking [Tue, 23 Sep 2008 12:55:08 +0000 (12:55 +0000)]
* Remove unused message 'revnotfound'
* Move message 'revnotfound' from core (there unused) to FlaggedRevs extension and rename to stick with naming conventions
Raimond Spekking [Tue, 23 Sep 2008 11:13:10 +0000 (11:13 +0000)]
* Add an own section for migrated extensions to RELEASE-NOTES
* Add an section to check installed extensions to UPGRADE
Siebrand Mazeland [Tue, 23 Sep 2008 09:26:01 +0000 (09:26 +0000)]
Localisation updates for core messages from Betawiki
* mostly related to core merge of Special:DeletedContributions
Siebrand Mazeland [Tue, 23 Sep 2008 09:17:32 +0000 (09:17 +0000)]
* fix localised special pages for Special:DeletedContributions
* fix link to Special:DeletedContributions on Special:Contributions
Siebrand Mazeland [Tue, 23 Sep 2008 08:41:55 +0000 (08:41 +0000)]
Add extension DeletedContributions to core
Siebrand Mazeland [Tue, 23 Sep 2008 07:31:35 +0000 (07:31 +0000)]
Localisation updates for core messages from Betawiki (2008-09-23 09:21 CEST)
Chad Horohoe [Tue, 23 Sep 2008 00:07:24 +0000 (00:07 +0000)]
Redo r41164 with less breakage.
Siebrand Mazeland [Mon, 22 Sep 2008 22:09:55 +0000 (22:09 +0000)]
Revert 41164: PHP Notice: Undefined property: ForeignAPIRepo::$repo in includes/filerepo/ForeignAPIRepo.php on line 143
Greg Sabino Mullane [Mon, 22 Sep 2008 20:57:36 +0000 (20:57 +0000)]
Sites are unlikely to have over 2 billion active users
Aaron Schulz [Mon, 22 Sep 2008 20:38:39 +0000 (20:38 +0000)]
Fill in blocklist from submit/url (bug 15611)
Chad Horohoe [Mon, 22 Sep 2008 20:22:10 +0000 (20:22 +0000)]
Add ForeignAPIRepo::canCacheThumbs() method. Cleaner interface and removes some code duplication.
Chad Horohoe [Mon, 22 Sep 2008 17:01:44 +0000 (17:01 +0000)]
Call Xml class directly, rather than the global function.
Raimond Spekking [Mon, 22 Sep 2008 16:16:37 +0000 (16:16 +0000)]
Add a link to edit the proction reason list
Chad Horohoe [Mon, 22 Sep 2008 15:48:07 +0000 (15:48 +0000)]
RELEASE-NOTES for last commit.
Chad Horohoe [Mon, 22 Sep 2008 15:44:13 +0000 (15:44 +0000)]
Make file_get_contents() respect our timeout settings. Otherwise, we'll get 3 minute waits for timeouts potentially, which is icky.
Aaron Schulz [Mon, 22 Sep 2008 14:37:05 +0000 (14:37 +0000)]
rev_deleted security improvements as well as fix for rawpages
Aaron Schulz [Mon, 22 Sep 2008 14:24:18 +0000 (14:24 +0000)]
Remove Revision::revText() and move functionality to getText()
Aaron Schulz [Mon, 22 Sep 2008 13:33:06 +0000 (13:33 +0000)]
Add comment
Aaron Schulz [Mon, 22 Sep 2008 13:21:53 +0000 (13:21 +0000)]
Apply account creation blocks to users (bug 13611)
Aaron Schulz [Mon, 22 Sep 2008 12:41:33 +0000 (12:41 +0000)]
Use IP::isIPAddress() to catch ranges and therefore show block/log links. (bug 13156)
Aaron Schulz [Mon, 22 Sep 2008 12:22:18 +0000 (12:22 +0000)]
Refactor RC2UDP code some
Raimond Spekking [Mon, 22 Sep 2008 11:54:10 +0000 (11:54 +0000)]
* Add loadAllMessages, neede for usergroups definded in extensions
* Add CSS classes per row to allow better customizations
Alexandre Emsenhuber [Mon, 22 Sep 2008 08:41:09 +0000 (08:41 +0000)]
Remove $wgCachedMessageArrays from DefaultSettings.php, there's no other occurrence of this variable. Seems that it was removed in r15823.
Rotem Liss [Mon, 22 Sep 2008 07:25:11 +0000 (07:25 +0000)]
Localization update.
Tim Starling [Mon, 22 Sep 2008 04:52:51 +0000 (04:52 +0000)]
* Fix some documentation
* Fix K&R style braces, since demon started, we may as well finish. This was one of the last files I wrote before I was converted to Brion-style braces.
* Renamed a variable
Greg Sabino Mullane [Mon, 22 Sep 2008 03:15:17 +0000 (03:15 +0000)]
Return numeric version only.
Aaron Schulz [Sun, 21 Sep 2008 22:56:59 +0000 (22:56 +0000)]
rc_log_type can be null, and NULL != 'x' is treated as false, which borked the count. (bug 15682)
Siebrand Mazeland [Sun, 21 Sep 2008 22:56:28 +0000 (22:56 +0000)]
(bug 14475) Clarify the email message for temporary passwords
Siebrand Mazeland [Sun, 21 Sep 2008 22:48:31 +0000 (22:48 +0000)]
(bug 15169) datePreferences for Korean.
Siebrand Mazeland [Sun, 21 Sep 2008 22:41:19 +0000 (22:41 +0000)]
Oops. Let's not forget those nasty namespace fallbacks.
Siebrand Mazeland [Sun, 21 Sep 2008 22:36:28 +0000 (22:36 +0000)]
Localisation updates from Betawiki
Matt Johnston [Sun, 21 Sep 2008 20:25:59 +0000 (20:25 +0000)]
(Bug 15650) Limit length of displayed deletion log while creating a new page
Very similair to Bug 14638 and r40944, for block form
Alexandre Emsenhuber [Sun, 21 Sep 2008 20:25:21 +0000 (20:25 +0000)]
Fatal error: Call to undefined function wfMemc() in includes/Block.php on line 550
Chad Horohoe [Sun, 21 Sep 2008 20:17:08 +0000 (20:17 +0000)]
+style version for r41128
Matt Johnston [Sun, 21 Sep 2008 19:59:29 +0000 (19:59 +0000)]
(Bug 15627) Other Expiry field isn't hidden if dropdown chosen but page reloaded
Rotem Liss [Sun, 21 Sep 2008 18:35:45 +0000 (18:35 +0000)]
Localization update.
Chad Horohoe [Sun, 21 Sep 2008 17:56:24 +0000 (17:56 +0000)]
Throw an error when the source and destination pages for mergehistory are the same.
Rotem Liss [Sun, 21 Sep 2008 17:50:14 +0000 (17:50 +0000)]
Localization update.
Shinjiman [Sun, 21 Sep 2008 17:41:01 +0000 (17:41 +0000)]
Localisation updates Cantonese, Chinese and Old/Late Time Chinese
Siebrand Mazeland [Sun, 21 Sep 2008 15:36:29 +0000 (15:36 +0000)]
Localisation updates for core messages from Betawiki (2008-09-21 17:29 CEST)
Siebrand Mazeland [Sun, 21 Sep 2008 15:21:29 +0000 (15:21 +0000)]
Append a <sup>*</sup> if a tooltip is available
Chad Horohoe [Sun, 21 Sep 2008 15:16:32 +0000 (15:16 +0000)]
More block updates:
* Improve docs (formatExpiry() is fine, abstracting wouldn't do anything, as it would just become a wrapper for $wgLang->timeanddate())
* Abstract out some param validation from insert()
* Add an update() method to make modification of existing blocks a bit nicer.
Siebrand Mazeland [Sun, 21 Sep 2008 15:11:22 +0000 (15:11 +0000)]
Remove leftover div
Siebrand Mazeland [Sun, 21 Sep 2008 14:59:55 +0000 (14:59 +0000)]
* Add tooltips for Users and Active users, shortening the displayed text
* Add missing 'cant-block-while-blocked' from r41108
Siebrand Mazeland [Sun, 21 Sep 2008 14:55:43 +0000 (14:55 +0000)]
Fix alignment of MessagesTcy.php
Chad Horohoe [Sun, 21 Sep 2008 14:25:46 +0000 (14:25 +0000)]
Helps to actually _put_ the info into $wgMemc...
Chad Horohoe [Sun, 21 Sep 2008 14:22:23 +0000 (14:22 +0000)]
* Lots and lots of docs
* Cache the autoblock whitelist in $wgMemc
* Remove old commented out code from when 'infinity' wasn't really 'infinity' but just really far in the future
Siebrand Mazeland [Sun, 21 Sep 2008 14:21:26 +0000 (14:21 +0000)]
Remove 'Error: ' in 'cant-block-while-blocked'. Not needed.
Chad Horohoe [Sun, 21 Sep 2008 13:16:00 +0000 (13:16 +0000)]
(bug 15642) Remove ability for blocked sysops to block other users.
Aaron Schulz [Sun, 21 Sep 2008 13:00:11 +0000 (13:00 +0000)]
Run query for people that don't have $wgMiserMode on for activeusers (bug 15666)
Chad Horohoe [Sun, 21 Sep 2008 12:37:00 +0000 (12:37 +0000)]
Core msg tweak. Explain what an "active user" is.
Siebrand Mazeland [Sun, 21 Sep 2008 11:38:09 +0000 (11:38 +0000)]
Fix syntax error
Siebrand Mazeland [Sun, 21 Sep 2008 11:36:27 +0000 (11:36 +0000)]
Localisation updates for core messages from Betawiki (2008-09-21 13:19 CEST)
Tim Starling [Sun, 21 Sep 2008 09:47:46 +0000 (09:47 +0000)]
Revert r41095, the bug is there because giving an error message as the return value from Article::getContent() is a terrible hack which should never have been allowed to survive this long. Move this crap to Article::view() or something.
Tim Starling [Sun, 21 Sep 2008 09:38:55 +0000 (09:38 +0000)]
Log exceptions encountered in api.php. Check for null $wgRequest.
Niklas Laxström [Sun, 21 Sep 2008 09:18:35 +0000 (09:18 +0000)]
* An attempt to fix bug 11119
* (bug 11119) {{grammar}} broken in noarticletext(anon) when ui lang != content lang
Tim Starling [Sun, 21 Sep 2008 09:15:28 +0000 (09:15 +0000)]
Fixed more wfGetDB() calls with no arguments.
Tim Starling [Sun, 21 Sep 2008 09:06:22 +0000 (09:06 +0000)]
More specific error messages
Tim Starling [Sun, 21 Sep 2008 08:44:20 +0000 (08:44 +0000)]
wfGetDB() needs a parameter.
Tim Starling [Sun, 21 Sep 2008 08:28:21 +0000 (08:28 +0000)]
Logging tweaks
Tim Starling [Sun, 21 Sep 2008 08:10:48 +0000 (08:10 +0000)]
Debugging code left in, probably needs an option of some kind.
Tim Starling [Sun, 21 Sep 2008 07:56:09 +0000 (07:56 +0000)]
Revert r40752. Causes lock contention on site_stats and other tracking tables, probably also causes bug 15656. See wikitech-l.
Niklas Laxström [Sun, 21 Sep 2008 07:18:24 +0000 (07:18 +0000)]
* $name is not defined here
Tim Starling [Sun, 21 Sep 2008 06:42:46 +0000 (06:42 +0000)]
Revert/rewrite of r40696.
* We used to have parameters to ignore errors, but they're obsolete now that we have exceptions. Implemented ES master failover using exceptions instead.
* Changing the number of DB connection attempts from 3 to 2 for some random getConnection() calls is almost pointless, adds lots of ugly formal parameters all of the place, and misses the big picture. It should be 2 by default, based on the original rationale. Any reasonable implementation of failover should have zero timeouts per request, by storing state. Changed the default to 2, or 1 if a long timeout is set.
Aryeh Gregor [Sun, 21 Sep 2008 02:53:24 +0000 (02:53 +0000)]
Prohibit empty page titles at a low level
This adds a sanity check to EditPage::doEdit() that throws an exception if the Title's name (sans namespace) is empty. Apparently the API edit module doesn't handle this error correctly at a high level, as evidenced by page
19405691 on enwiki. I didn't try to test whether this extra check stops the particular error, but it doesn't hurt in any case.
Aryeh Gregor [Sun, 21 Sep 2008 02:53:16 +0000 (02:53 +0000)]
Whitespace/braces
Aaron Schulz [Sat, 20 Sep 2008 22:48:55 +0000 (22:48 +0000)]
* Avoid doing templatelinks query (which can get huge) twice by adding cachupdate jobs using the same query as refreshlinks jobs do
* Don't trigger recursive jobs for nulls edits
* Some whitespace tweaks
Alex Z [Sat, 20 Sep 2008 16:08:08 +0000 (16:08 +0000)]
Move protection level and protection expiry information for title protection into log_params.
Tim Starling [Sat, 20 Sep 2008 15:00:53 +0000 (15:00 +0000)]
Don't run hour-long, unlimited row-count DB queries with set_time_limit(0) in response to unauthenticated web requests on the Run them on the slave instead. Maybe we can crash the whole cluster instead of just a master or two.
Don't use DB_LAST, ever again.
Aaron Schulz [Sat, 20 Sep 2008 14:37:50 +0000 (14:37 +0000)]
Remove unnecessary transaction