lhc/web/wiklou.git
15 years ago* Improved upload file type detection for OpenDocument formats
Brion Vibber [Thu, 25 Sep 2008 18:43:33 +0000 (18:43 +0000)]
* Improved upload file type detection for OpenDocument formats

Added a check for the magic value header in OpenDocument zip archives which specifies which subtype it is. Such files will get detected with the appropriate mime type and matching extension, so ODT etc uploads will work again where enabled.

(Previously the general ZIP check and blacklist would disable them.)

15 years ago(bug 15609) Add inprop=url (full URL to page and edit form) and inprop=readable ...
Roan Kattouw [Thu, 25 Sep 2008 15:55:09 +0000 (15:55 +0000)]
(bug 15609) Add inprop=url (full URL to page and edit form) and inprop=readable (whether the current user can read the page) to prop=info

15 years agoFollowup to r41257: don't give out a token when we're in JSON callback mode
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

15 years agoAPI: Added uiprop=preferencestoken to meta=userinfo, to retrieve the token for chanin...
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).

15 years ago(bug 15706) Empty values for apprtype and apprlevel are now silently ignored rather...
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

15 years ago(bug 15673) Add indentation and newlines to format=wddxfm output:
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

15 years agoLocalization update.
Rotem Liss [Thu, 25 Sep 2008 13:05:56 +0000 (13:05 +0000)]
Localization update.

15 years agoFix spelling
Siebrand Mazeland [Thu, 25 Sep 2008 12:01:45 +0000 (12:01 +0000)]
Fix spelling

15 years agoAdd messages from r41248
Siebrand Mazeland [Thu, 25 Sep 2008 11:59:47 +0000 (11:59 +0000)]
Add messages from r41248

15 years ago(bug 8440) Allow preventing blocked users from editing their talk pages
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.

15 years agoFixes in recently added messages, also register them.
Siebrand Mazeland [Thu, 25 Sep 2008 10:46:29 +0000 (10:46 +0000)]
Fixes in recently added messages, also register them.

15 years agoRe r41198: if you're going to break the interface, you may as well do it properly...
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

15 years agoBreak some long lines
Aaron Schulz [Thu, 25 Sep 2008 06:33:58 +0000 (06:33 +0000)]
Break some long lines

15 years ago* (bug 15701) Protection form was too wide for some browsers as 2 columns, switching...
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.

15 years ago* Rename randomInsert() to insertToDefault()
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)

15 years agoAdd insertRandom() with failover back. Currently not used just yet.
Aaron Schulz [Wed, 24 Sep 2008 18:38:25 +0000 (18:38 +0000)]
Add insertRandom() with failover back. Currently not used just yet.

15 years agoRevert some recent ES-related changes -- they made behavior much worse when we encoun...
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

15 years agoSelf-revert and re-add transactions here. Sacrifices some atomicity for less transact...
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.

15 years agoAnother fix for r41086. Don't keep retrying server if connection fails.
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.

15 years agoUncomment out needed code, PN2 not wanting to save :/
Aaron Schulz [Wed, 24 Sep 2008 16:13:50 +0000 (16:13 +0000)]
Uncomment out needed code, PN2 not wanting to save :/

15 years agoRevert untested code change from r41086. Don't call methods on non-objects, the fatal...
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.

15 years ago* Preserve protection on move for original title (now redirect) (bug 10527)
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)

15 years agoRemove commented out code
Aaron Schulz [Wed, 24 Sep 2008 13:49:48 +0000 (13:49 +0000)]
Remove commented out code

15 years agoShorten expiry box
Aaron Schulz [Wed, 24 Sep 2008 11:53:03 +0000 (11:53 +0000)]
Shorten expiry box

15 years agoFixes for r41154 and r41155:
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.

15 years agoFix docs for r41150, remove commented-out code, remove superfluous brackets in "new...
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.

15 years agoFix unnecessary GlobalFunctions.php bloat from r41148
Tim Starling [Wed, 24 Sep 2008 08:36:44 +0000 (08:36 +0000)]
Fix unnecessary GlobalFunctions.php bloat from r41148

15 years ago* Add a simple log demultiplexer, written in python, for low-volume MediaWiki logs
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

15 years agoImplemented UDP logging.
Tim Starling [Wed, 24 Sep 2008 07:11:41 +0000 (07:11 +0000)]
Implemented UDP logging.

15 years agoLocalization update for he.
Rotem Liss [Wed, 24 Sep 2008 04:14:49 +0000 (04:14 +0000)]
Localization update for he.

15 years agoWarning: ini_set() [ref.outcontrol]: Cannot change zlib.output_compression - headers...
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

15 years ago* Make Article::doEdit() return the revId, not just true/false. Make the article...
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)

15 years ago* Remove unused message 'revnotfound'
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

15 years ago* Add an own section for migrated extensions to RELEASE-NOTES
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

15 years agoLocalisation updates for core messages from Betawiki
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

15 years ago* fix localised special pages for 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

15 years agoAdd extension DeletedContributions to core
Siebrand Mazeland [Tue, 23 Sep 2008 08:41:55 +0000 (08:41 +0000)]
Add extension DeletedContributions to core

15 years agoLocalisation updates for core messages from Betawiki (2008-09-23 09:21 CEST)
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)

15 years agoRedo r41164 with less breakage.
Chad Horohoe [Tue, 23 Sep 2008 00:07:24 +0000 (00:07 +0000)]
Redo r41164 with less breakage.

15 years agoRevert 41164: PHP Notice: Undefined property: ForeignAPIRepo::$repo in includes...
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

15 years agoSites are unlikely to have over 2 billion active users
Greg Sabino Mullane [Mon, 22 Sep 2008 20:57:36 +0000 (20:57 +0000)]
Sites are unlikely to have over 2 billion active users

15 years agoFill in blocklist from submit/url (bug 15611)
Aaron Schulz [Mon, 22 Sep 2008 20:38:39 +0000 (20:38 +0000)]
Fill in blocklist from submit/url (bug 15611)

15 years agoAdd ForeignAPIRepo::canCacheThumbs() method. Cleaner interface and removes some code...
Chad Horohoe [Mon, 22 Sep 2008 20:22:10 +0000 (20:22 +0000)]
Add ForeignAPIRepo::canCacheThumbs() method. Cleaner interface and removes some code duplication.

15 years agoCall Xml class directly, rather than the global function.
Chad Horohoe [Mon, 22 Sep 2008 17:01:44 +0000 (17:01 +0000)]
Call Xml class directly, rather than the global function.

15 years agoAdd a link to edit the proction reason list
Raimond Spekking [Mon, 22 Sep 2008 16:16:37 +0000 (16:16 +0000)]
Add a link to edit the proction reason list

15 years agoRELEASE-NOTES for last commit.
Chad Horohoe [Mon, 22 Sep 2008 15:48:07 +0000 (15:48 +0000)]
RELEASE-NOTES for last commit.

15 years agoMake file_get_contents() respect our timeout settings. Otherwise, we'll get 3 minute...
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.

15 years agorev_deleted security improvements as well as fix for rawpages
Aaron Schulz [Mon, 22 Sep 2008 14:37:05 +0000 (14:37 +0000)]
rev_deleted security improvements as well as fix for rawpages

15 years agoRemove Revision::revText() and move functionality to getText()
Aaron Schulz [Mon, 22 Sep 2008 14:24:18 +0000 (14:24 +0000)]
Remove Revision::revText() and move functionality to getText()

15 years agoAdd comment
Aaron Schulz [Mon, 22 Sep 2008 13:33:06 +0000 (13:33 +0000)]
Add comment

15 years agoApply account creation blocks to users (bug 13611)
Aaron Schulz [Mon, 22 Sep 2008 13:21:53 +0000 (13:21 +0000)]
Apply account creation blocks to users (bug 13611)

15 years agoUse IP::isIPAddress() to catch ranges and therefore show block/log links. (bug 13156)
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)

15 years agoRefactor RC2UDP code some
Aaron Schulz [Mon, 22 Sep 2008 12:22:18 +0000 (12:22 +0000)]
Refactor RC2UDP code some

15 years ago* Add loadAllMessages, neede for usergroups definded in extensions
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

15 years agoRemove $wgCachedMessageArrays from DefaultSettings.php, there's no other occurrence...
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.

15 years agoLocalization update.
Rotem Liss [Mon, 22 Sep 2008 07:25:11 +0000 (07:25 +0000)]
Localization update.

15 years ago* Fix some documentation
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

15 years agoReturn numeric version only.
Greg Sabino Mullane [Mon, 22 Sep 2008 03:15:17 +0000 (03:15 +0000)]
Return numeric version only.

15 years agorc_log_type can be null, and NULL != 'x' is treated as false, which borked the count...
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)

15 years ago(bug 14475) Clarify the email message for temporary passwords
Siebrand Mazeland [Sun, 21 Sep 2008 22:56:28 +0000 (22:56 +0000)]
(bug 14475) Clarify the email message for temporary passwords

15 years ago(bug 15169) datePreferences for Korean.
Siebrand Mazeland [Sun, 21 Sep 2008 22:48:31 +0000 (22:48 +0000)]
(bug 15169) datePreferences for Korean.

15 years agoOops. Let's not forget those nasty namespace fallbacks.
Siebrand Mazeland [Sun, 21 Sep 2008 22:41:19 +0000 (22:41 +0000)]
Oops. Let's not forget those nasty namespace fallbacks.

15 years agoLocalisation updates from Betawiki
Siebrand Mazeland [Sun, 21 Sep 2008 22:36:28 +0000 (22:36 +0000)]
Localisation updates from Betawiki

15 years ago(Bug 15650) Limit length of displayed deletion log while creating a new page
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

15 years agoFatal error: Call to undefined function wfMemc() in includes/Block.php on line 550
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

15 years ago+style version for r41128
Chad Horohoe [Sun, 21 Sep 2008 20:17:08 +0000 (20:17 +0000)]
+style version for r41128

15 years ago(Bug 15627) Other Expiry field isn't hidden if dropdown chosen but page reloaded
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

15 years agoLocalization update.
Rotem Liss [Sun, 21 Sep 2008 18:35:45 +0000 (18:35 +0000)]
Localization update.

15 years agoThrow an error when the source and destination pages for mergehistory are the same.
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.

15 years agoLocalization update.
Rotem Liss [Sun, 21 Sep 2008 17:50:14 +0000 (17:50 +0000)]
Localization update.

15 years agoLocalisation updates Cantonese, Chinese and Old/Late Time Chinese
Shinjiman [Sun, 21 Sep 2008 17:41:01 +0000 (17:41 +0000)]
Localisation updates Cantonese, Chinese and Old/Late Time Chinese

15 years agoLocalisation updates for core messages from Betawiki (2008-09-21 17:29 CEST)
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)

15 years agoAppend a <sup>*</sup> if a tooltip is available
Siebrand Mazeland [Sun, 21 Sep 2008 15:21:29 +0000 (15:21 +0000)]
Append a <sup>*</sup> if a tooltip is available

15 years agoMore block updates:
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.

15 years agoRemove leftover div
Siebrand Mazeland [Sun, 21 Sep 2008 15:11:22 +0000 (15:11 +0000)]
Remove leftover div

15 years ago* Add tooltips for Users and Active users, shortening the displayed text
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

15 years agoFix alignment of MessagesTcy.php
Siebrand Mazeland [Sun, 21 Sep 2008 14:55:43 +0000 (14:55 +0000)]
Fix alignment of MessagesTcy.php

15 years agoHelps to actually _put_ the info into $wgMemc...
Chad Horohoe [Sun, 21 Sep 2008 14:25:46 +0000 (14:25 +0000)]
Helps to actually _put_ the info into $wgMemc...

15 years ago* Lots and lots of docs
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

15 years agoRemove 'Error: ' in 'cant-block-while-blocked'. Not needed.
Siebrand Mazeland [Sun, 21 Sep 2008 14:21:26 +0000 (14:21 +0000)]
Remove 'Error: ' in 'cant-block-while-blocked'. Not needed.

15 years ago(bug 15642) Remove ability for blocked sysops to block other users.
Chad Horohoe [Sun, 21 Sep 2008 13:16:00 +0000 (13:16 +0000)]
(bug 15642) Remove ability for blocked sysops to block other users.

15 years agoRun query for people that don't have $wgMiserMode on for activeusers (bug 15666)
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)

15 years agoCore msg tweak. Explain what an "active user" is.
Chad Horohoe [Sun, 21 Sep 2008 12:37:00 +0000 (12:37 +0000)]
Core msg tweak. Explain what an "active user" is.

15 years agoFix syntax error
Siebrand Mazeland [Sun, 21 Sep 2008 11:38:09 +0000 (11:38 +0000)]
Fix syntax error

15 years agoLocalisation updates for core messages from Betawiki (2008-09-21 13:19 CEST)
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)

15 years agoRevert r41095, the bug is there because giving an error message as the return value...
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.

15 years agoLog exceptions encountered in api.php. Check for null $wgRequest.
Tim Starling [Sun, 21 Sep 2008 09:38:55 +0000 (09:38 +0000)]
Log exceptions encountered in api.php. Check for null $wgRequest.

15 years ago* An attempt to fix bug 11119
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

15 years agoFixed more wfGetDB() calls with no arguments.
Tim Starling [Sun, 21 Sep 2008 09:15:28 +0000 (09:15 +0000)]
Fixed more wfGetDB() calls with no arguments.

15 years agoMore specific error messages
Tim Starling [Sun, 21 Sep 2008 09:06:22 +0000 (09:06 +0000)]
More specific error messages

15 years agowfGetDB() needs a parameter.
Tim Starling [Sun, 21 Sep 2008 08:44:20 +0000 (08:44 +0000)]
wfGetDB() needs a parameter.

15 years agoLogging tweaks
Tim Starling [Sun, 21 Sep 2008 08:28:21 +0000 (08:28 +0000)]
Logging tweaks

15 years agoDebugging code left in, probably needs an option of some kind.
Tim Starling [Sun, 21 Sep 2008 08:10:48 +0000 (08:10 +0000)]
Debugging code left in, probably needs an option of some kind.

15 years agoRevert r40752. Causes lock contention on site_stats and other tracking tables, probab...
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.

15 years ago* $name is not defined here
Niklas Laxström [Sun, 21 Sep 2008 07:18:24 +0000 (07:18 +0000)]
* $name is not defined here

15 years agoRevert/rewrite of r40696.
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.

15 years agoProhibit empty page titles at a low level
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.

15 years agoWhitespace/braces
Aryeh Gregor [Sun, 21 Sep 2008 02:53:16 +0000 (02:53 +0000)]
Whitespace/braces

15 years ago* Avoid doing templatelinks query (which can get huge) twice by adding cachupdate...
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

15 years agoMove protection level and protection expiry information for title protection into...
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.