lhc/web/wiklou.git
11 years agoDeferred page_touched update via onTransactionIdle.
Aaron Schulz [Tue, 26 Mar 2013 20:08:41 +0000 (13:08 -0700)]
Deferred page_touched update via onTransactionIdle.

* This should reduce deadlocks and lock wait timeouts.

Change-Id: I595bc33d7643e7964d796b1d3da31f7cfab55024

11 years agoMerge "In SqlBagOStuff::getMulti(), catch connect errors"
jenkins-bot [Tue, 2 Apr 2013 23:10:08 +0000 (23:10 +0000)]
Merge "In SqlBagOStuff::getMulti(), catch connect errors"

11 years agoIn SqlBagOStuff::getMulti(), catch connect errors
Tim Starling [Tue, 2 Apr 2013 22:47:53 +0000 (09:47 +1100)]
In SqlBagOStuff::getMulti(), catch connect errors

This case was somehow neglected in Ifba0d276. The other methods work
correctly.

Change-Id: If29f0212f07c13bd72469c580bb096a2a41a96b5

11 years agoMerge "[LockManager] Added timeout to the lock() function."
jenkins-bot [Tue, 2 Apr 2013 22:41:56 +0000 (22:41 +0000)]
Merge "[LockManager] Added timeout to the lock() function."

11 years agoMerge "Avoid duplicated effort in JobQueueAggregatorRedis::doGetAllReadyWikiQueues()."
jenkins-bot [Tue, 2 Apr 2013 22:36:46 +0000 (22:36 +0000)]
Merge "Avoid duplicated effort in JobQueueAggregatorRedis::doGetAllReadyWikiQueues()."

11 years ago[LockManager] Added timeout to the lock() function.
Aaron Schulz [Wed, 13 Mar 2013 08:07:41 +0000 (01:07 -0700)]
[LockManager] Added timeout to the lock() function.

Change-Id: I32f97b813fc6036b2774d67c14c574420e7a1437

11 years agoMerge "Add wfProfileOut to the new returns added by 19ecb69f"
jenkins-bot [Tue, 2 Apr 2013 22:21:27 +0000 (22:21 +0000)]
Merge "Add wfProfileOut to the new returns added by 19ecb69f"

11 years agoAvoid duplicated effort in JobQueueAggregatorRedis::doGetAllReadyWikiQueues().
Aaron Schulz [Thu, 14 Mar 2013 20:39:46 +0000 (13:39 -0700)]
Avoid duplicated effort in JobQueueAggregatorRedis::doGetAllReadyWikiQueues().

Change-Id: I76bfc23ecf94c974a9eefc7d430b26d70187409e

11 years agoMerge "Use canonical class name."
jenkins-bot [Tue, 2 Apr 2013 21:20:55 +0000 (21:20 +0000)]
Merge "Use canonical class name."

11 years agoMerge changes I8590352b,I164d60e0
jenkins-bot [Tue, 2 Apr 2013 21:06:31 +0000 (21:06 +0000)]
Merge changes I8590352b,I164d60e0

* changes:
  ResourceLoader: Change $module by ref instead of resetting the key
  QUnit: Ensure test modules are top loading

11 years agoUse canonical class name.
Platonides [Tue, 2 Apr 2013 20:58:01 +0000 (22:58 +0200)]
Use canonical class name.

Change-Id: I7dc9980d334bc5ad6421135d713d890a8588281c

11 years agoAdd wfProfileOut to the new returns added by 19ecb69f
Platonides [Tue, 2 Apr 2013 20:52:00 +0000 (22:52 +0200)]
Add wfProfileOut to the new returns added by 19ecb69f

Change-Id: I97def12da054db7204955b95c3d590a3ab24ba55

11 years agoResourceLoader: Change $module by ref instead of resetting the key
Timo Tijhof [Tue, 2 Apr 2013 20:31:20 +0000 (22:31 +0200)]
ResourceLoader: Change $module by ref instead of resetting the key

Change-Id: I8590352b52ecf51def21a9c52af85aba0f050ff8

11 years agoQUnit: Ensure test modules are top loading
Timo Tijhof [Tue, 2 Apr 2013 17:59:07 +0000 (19:59 +0200)]
QUnit: Ensure test modules are top loading

Jenkins tests for extensions were exiting with a false positive.
They were marked "success" but in fact were wrong because
it only ran the core tests, the extensions' test suite was
loaded after QUnit already stopped listening.

Change-Id: I164d60e06118b64a1c6a17665a0fb1faeff744e5

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Tue, 2 Apr 2013 19:37:30 +0000 (19:37 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMerge "Monobook: Solve padding issues with #content and #firstheading"
jenkins-bot [Tue, 2 Apr 2013 18:57:05 +0000 (18:57 +0000)]
Merge "Monobook: Solve padding issues with #content and #firstheading"

11 years agoMonobook: Solve padding issues with #content and #firstheading
rahul21 [Sat, 30 Mar 2013 21:40:41 +0000 (03:10 +0530)]
Monobook: Solve padding issues with #content and #firstheading

Makes it consistent with the Vector skin.

Bug: 26849
Change-Id: Iab04baea4131208373962e4ddf7c8ac83c7f2ca9

11 years agoMerge "add index to image table to query by type"
jenkins-bot [Tue, 2 Apr 2013 18:45:15 +0000 (18:45 +0000)]
Merge "add index to image table to query by type"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 2 Apr 2013 18:31:27 +0000 (18:31 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I6a69fcf18f4a18174882fe6024ff9ae6d4b8b2c2

11 years agoMerge "Update PHPDoc comments"
jenkins-bot [Tue, 2 Apr 2013 18:24:47 +0000 (18:24 +0000)]
Merge "Update PHPDoc comments"

11 years agoMerge "(bug 46787) API: Fix rccontinue handling"
jenkins-bot [Tue, 2 Apr 2013 18:03:01 +0000 (18:03 +0000)]
Merge "(bug 46787) API: Fix rccontinue handling"

11 years agoMerge "API param validation: Set strict mode for in_array"
jenkins-bot [Tue, 2 Apr 2013 17:59:20 +0000 (17:59 +0000)]
Merge "API param validation: Set strict mode for in_array"

11 years ago(bug 46787) API: Fix rccontinue handling
Brad Jorsch [Tue, 2 Apr 2013 14:01:53 +0000 (10:01 -0400)]
(bug 46787) API: Fix rccontinue handling

There are several bugs in Icc43b62f:
* When handing the continuation, the code checks for dir=descending when
  the actual value is dir=older.
* When the above is fixed, the continuation code assumes "ORDER BY
  rc_timestamp DESC, rc_id ASC", which would filesort.
* rc_id is not added to the ORDER BY clause anyway.

Bug: 46787
Change-Id: Ia6ebd4ea0458b8013d4ecb71954dcfbdacff2c00

11 years agoUpdate/fix PHPDoc
Siebrand Mazeland [Mon, 1 Apr 2013 22:12:05 +0000 (00:12 +0200)]
Update/fix PHPDoc

Also initilise two possibly undefined veriables ($cl/$dl) and
add a type hint.

Change-Id: I24d4f13fa03caf7861646837f185df4f1e077c6e

11 years agoUpdate PHPDoc comments
Siebrand Mazeland [Mon, 1 Apr 2013 17:16:34 +0000 (19:16 +0200)]
Update PHPDoc comments

Change-Id: Id20f632762d705ba5e5eb18088f6e9e551b3f42b

11 years agoAPI param validation: Set strict mode for in_array
umherirrender [Tue, 2 Apr 2013 10:05:50 +0000 (12:05 +0200)]
API param validation: Set strict mode for in_array

The in_array gives true when the allowed values contains a 0 as value,
for example by namespaces,

action=query&list=allpages&apnamespace=test|tset

was not rejected

Change-Id: I9220a955ffaf2bcb0d1d5b27c948af2f85714110

11 years agoMerge "Remove removed message keys from maintenance files"
jenkins-bot [Tue, 2 Apr 2013 06:29:05 +0000 (06:29 +0000)]
Merge "Remove removed message keys from maintenance files"

11 years agoDeferred user_touched update via onTransactionIdle.
Aaron Schulz [Tue, 26 Mar 2013 18:41:52 +0000 (11:41 -0700)]
Deferred user_touched update via onTransactionIdle.

* This should reduce deadlocks and lock wait timeouts.

Change-Id: I7d028f9efbe6b2f73240aa653eb9775020f33e8c

11 years ago[JobQueue] Fixed use of ipairs() in JobQueueRedis.
Aaron Schulz [Mon, 1 Apr 2013 19:36:19 +0000 (12:36 -0700)]
[JobQueue] Fixed use of ipairs() in JobQueueRedis.

Change-Id: Id507c0a3dfaf8b1fde92eb99f7204e31775b042c

11 years agoadd index to image table to query by type
Jan Gerber [Thu, 22 Nov 2012 19:12:42 +0000 (19:12 +0000)]
add index to image table to query by type

this speeds up Special:MIMESearch and allows
queries for all files of one type.

Change-Id: I85715b0553a771ab88d9763ba921923551988bd0

11 years agoRemove removed message keys from maintenance files
Siebrand Mazeland [Mon, 1 Apr 2013 21:48:11 +0000 (23:48 +0200)]
Remove removed message keys from maintenance files

Follow-up to change-Id Ia6d73c2deb9428d214b7d69b29235094de75c52e

Change-Id: I17a9960265fa44c45468ec5cdc5b5839dce475cc

11 years agoMerge "Remove several ancient skins"
jenkins-bot [Mon, 1 Apr 2013 21:34:09 +0000 (21:34 +0000)]
Merge "Remove several ancient skins"

11 years agoMerge "Reduced indentation levels, broke long lines."
jenkins-bot [Mon, 1 Apr 2013 21:27:05 +0000 (21:27 +0000)]
Merge "Reduced indentation levels, broke long lines."

11 years agoRemove several ancient skins
Chad Horohoe [Thu, 28 Mar 2013 13:43:02 +0000 (09:43 -0400)]
Remove several ancient skins

Standard, Simple, Chick and MySkin have all been removed.
Nostalgia has been moved to an extension for posterity.

Change-Id: Ia6d73c2deb9428d214b7d69b29235094de75c52e

11 years agoReduced indentation levels, broke long lines.
Siebrand Mazeland [Thu, 28 Mar 2013 12:31:49 +0000 (13:31 +0100)]
Reduced indentation levels, broke long lines.

Also updated formatting, added docs for class variable $mNavigationBar, fixed
some hard coded parentheses and removed an unneeded else block.

Change-Id: Ic9a5f9f34199d89474cefbac763488cac1265094

11 years ago[JobQueue] Added JobQueue::getAbandonedCount() and use it in showJobs.php.
Aaron Schulz [Wed, 20 Mar 2013 19:40:09 +0000 (12:40 -0700)]
[JobQueue] Added JobQueue::getAbandonedCount() and use it in showJobs.php.

Change-Id: I5d96c61165b2693589d5cf36309fdb6a8b5a137e

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Mon, 1 Apr 2013 20:50:58 +0000 (20:50 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMerge "Several Parsoid-specific tests for serializer/parser edge cases."
GWicke [Mon, 1 Apr 2013 20:33:11 +0000 (20:33 +0000)]
Merge "Several Parsoid-specific tests for serializer/parser edge cases."

11 years agoMerge "Add docs for constructor"
jenkins-bot [Mon, 1 Apr 2013 20:13:15 +0000 (20:13 +0000)]
Merge "Add docs for constructor"

11 years agoMerge "Fix PHPDoc"
jenkins-bot [Mon, 1 Apr 2013 20:10:04 +0000 (20:10 +0000)]
Merge "Fix PHPDoc"

11 years agoMerge "Remove unneeded else{} and return"
jenkins-bot [Mon, 1 Apr 2013 20:06:33 +0000 (20:06 +0000)]
Merge "Remove unneeded else{} and return"

11 years agoMerge "Unscrew something that doesn't make sense"
jenkins-bot [Mon, 1 Apr 2013 20:03:36 +0000 (20:03 +0000)]
Merge "Unscrew something that doesn't make sense"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 1 Apr 2013 19:21:07 +0000 (19:21 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I11310d9ad7a01f38a5a4128c99f9d022a771f319

11 years agoMerge "Removed "flush on destruct" from StatCounter."
jenkins-bot [Mon, 1 Apr 2013 19:05:57 +0000 (19:05 +0000)]
Merge "Removed "flush on destruct" from StatCounter."

11 years agoMerge "Remove completely unused $wgRedirectScript/redirect.php"
Brion VIBBER [Mon, 1 Apr 2013 18:53:44 +0000 (18:53 +0000)]
Merge "Remove completely unused $wgRedirectScript/redirect.php"

11 years agoRemove unneeded else{} and return
Siebrand Mazeland [Mon, 1 Apr 2013 17:18:15 +0000 (19:18 +0200)]
Remove unneeded else{} and return

Else action was default. Returned the result of a void function.

Change-Id: I9ddf051ded0228dd3dfdfe9312f467d9c57f1716

11 years agoFix PHPDoc
Siebrand Mazeland [Mon, 1 Apr 2013 18:37:03 +0000 (20:37 +0200)]
Fix PHPDoc

Change-Id: Ic40017023fe21c8480883e21d27a44cf9854175b

11 years agoUnscrew something that doesn't make sense
Siebrand Mazeland [Mon, 1 Apr 2013 18:31:47 +0000 (20:31 +0200)]
Unscrew something that doesn't make sense

The probably makes the B/C work that never worked.

Found using PHPStorm's "Type compatibility" analyser.

Change-Id: I657c06aa7c8ef1ed5bc608a453f78adf0e04b375

11 years agoRemove completely unused $wgRedirectScript/redirect.php
Chad Horohoe [Thu, 28 Mar 2013 13:54:50 +0000 (09:54 -0400)]
Remove completely unused $wgRedirectScript/redirect.php

Change-Id: Ia624d65fbb1c787293054e12162b1444ab7c1edc

11 years agoMerge "Remove unused local variables"
jenkins-bot [Mon, 1 Apr 2013 18:03:06 +0000 (18:03 +0000)]
Merge "Remove unused local variables"

11 years agoRemove unused local variables
Siebrand Mazeland [Mon, 1 Apr 2013 17:04:44 +0000 (19:04 +0200)]
Remove unused local variables

Change-Id: I8eb774c2857dcc87404fd8a7e5fb66c5a4c9643e

11 years agoRemoved "flush on destruct" from StatCounter.
Aaron Schulz [Mon, 1 Apr 2013 17:36:50 +0000 (10:36 -0700)]
Removed "flush on destruct" from StatCounter.

Change-Id: Ib6ff0680d858e12969259997da163d0d696d65eb

11 years agoMerge "backport release notes from Ia6efdf931b0b6be7556fc16c040aa7493845cdfc"
jenkins-bot [Mon, 1 Apr 2013 17:36:34 +0000 (17:36 +0000)]
Merge "backport release notes from Ia6efdf931b0b6be7556fc16c040aa7493845cdfc"

11 years agoMerge "Fix PHPDoc"
jenkins-bot [Mon, 1 Apr 2013 17:07:29 +0000 (17:07 +0000)]
Merge "Fix PHPDoc"

11 years agoAdd docs for constructor
Siebrand Mazeland [Mon, 1 Apr 2013 16:54:07 +0000 (18:54 +0200)]
Add docs for constructor

Change-Id: I976dc8fc8a3736aaa7964cedb8e9470eacf5fda0

11 years agobackport release notes from Ia6efdf931b0b6be7556fc16c040aa7493845cdfc
MarkAHershberger [Mon, 1 Apr 2013 15:25:23 +0000 (11:25 -0400)]
backport release notes from Ia6efdf931b0b6be7556fc16c040aa7493845cdfc

Change-Id: I274a7429130db05c2dc8bba9bd32d28b933747d3

11 years agoFix PHPDoc
Siebrand Mazeland [Mon, 1 Apr 2013 16:45:18 +0000 (18:45 +0200)]
Fix PHPDoc

"The" is an unknown class.

Change-Id: Ic8ce1f1252f4b435dbca789226056781d606d8ee

11 years agoFix PHPDoc
Siebrand Mazeland [Mon, 1 Apr 2013 16:37:42 +0000 (18:37 +0200)]
Fix PHPDoc

Was incorrectly documenting Article instead of Page. Also changed $article
to $page to avoid confusion.

Change-Id: I366769a201b5fda1c8d59119bdac908fd7727cbf

11 years agoUse double quotes to use variable $oper properly
Siebrand Mazeland [Mon, 1 Apr 2013 16:25:05 +0000 (18:25 +0200)]
Use double quotes to use variable $oper properly

Introduced in Change-Id: I29461e5332f3fc6523cbd899e14394aa88865d93

Change-Id: Ic4e8d133fc9ab362f3f463309d799e80fff5d883

11 years agoReduced indentation levels, broke long lines.
Siebrand Mazeland [Thu, 28 Mar 2013 11:54:11 +0000 (12:54 +0100)]
Reduced indentation levels, broke long lines.

Reversed login a two cases to get there.

Also updated PHPDoc, removed an unneeded comment and removed superfluous
newlines.

Change-Id: Ica5f7d24171e2eaeccc0743f8800e18cf2de8006

11 years agoReduced indentation levels, broke long lines
Siebrand Mazeland [Thu, 28 Mar 2013 11:43:08 +0000 (12:43 +0100)]
Reduced indentation levels, broke long lines

Also removed some unneeded else blocks to ensure more consistent return values.

Change-Id: Icf1d6fecfbd512fadad61442c968f0ef1ba30a88

11 years agoInstaller can now customize the logo in LocalSettings.php
Dereckson [Sun, 30 Sep 2012 08:15:55 +0000 (10:15 +0200)]
Installer can now customize the logo in LocalSettings.php

Bug: 40617
Change-Id: Ia6efdf931b0b6be7556fc16c040aa7493845cdfc

11 years agoMerge "Remove leading spaces in two messages"
jenkins-bot [Mon, 1 Apr 2013 14:03:58 +0000 (14:03 +0000)]
Merge "Remove leading spaces in two messages"

11 years agoMerge "Fix pretty JSON when strings end with backslashes"
jenkins-bot [Mon, 1 Apr 2013 13:56:48 +0000 (13:56 +0000)]
Merge "Fix pretty JSON when strings end with backslashes"

11 years agoRemove leading spaces in two messages
Siebrand Mazeland [Mon, 1 Apr 2013 09:16:19 +0000 (11:16 +0200)]
Remove leading spaces in two messages

Also replace two hard coded space by a word separator.

Spotted by 아라 in
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Upload_source_url/en

Change-Id: If3fbe2ed9b2bd7e156cc31055e9c74da3d79240a

11 years agoMerge "Fix errors reported by phpcs in includes/HTMLForm.php"
jenkins-bot [Mon, 1 Apr 2013 02:42:09 +0000 (02:42 +0000)]
Merge "Fix errors reported by phpcs in includes/HTMLForm.php"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 31 Mar 2013 18:21:00 +0000 (18:21 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I2868edbb08e2acf3f26e36556382b39df38e597a

11 years agoFixed small doc typo.
Aaron Schulz [Sun, 31 Mar 2013 08:53:22 +0000 (01:53 -0700)]
Fixed small doc typo.

Change-Id: Ia2a86e1c8126bde48c17f0c8f56905ed325d8be1

11 years agoFix pretty JSON when strings end with backslashes
Kevin Israel [Thu, 28 Mar 2013 02:04:58 +0000 (22:04 -0400)]
Fix pretty JSON when strings end with backslashes

If a string encoded as part of the output ends in a backslash
(e.g. an edit token), FormatJson::prettyPrint() may incorrectly
treat the unescaped double quote marking the end of the string as
a character that is part of the string.

This is a serious problem in that the "pretty" output may not
necessarily be valid JSON; a later string literal might contain
one or more of these tokens: :[{,]}

To fix the bug, I exploit strtr's behavior when it is given an
associative array having keys of the same length to skip over
escaped backslashes while replacing escaped double quotes with "\x01".

I also updated the corresponding unit test.

Change-Id: I159105b6493c14b82cd0a41a95e04bfed744931e

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sat, 30 Mar 2013 19:44:29 +0000 (19:44 +0000)]
Localisation updates from translatewiki.net.

Change-Id: If3443de8eb3957afd1c2b4666a60aa8e8edd76f4

11 years agoApply IP blocks to X-Forwarded-For header
Skizzerz [Sat, 17 Nov 2012 23:23:09 +0000 (17:23 -0600)]
Apply IP blocks to X-Forwarded-For header

Adds a new configuration variable ($wgApplyIpBlocksToXff), which when
enabled will scan the XFF header for IP addresses and check if any of
them have been blocked. $wgApplyIpBlocksToXff is disabled by default.

Bug: 23343
Change-Id: I3faa9c3e8107c6e46cdf21f8c18adda1f42890d7

11 years agoMerge "Make ResourceLoaderStartupModule work on mobile"
Trevor Parscal [Sat, 30 Mar 2013 00:14:05 +0000 (00:14 +0000)]
Merge "Make ResourceLoaderStartupModule work on mobile"

11 years agoMerge "Add RL targets support to OutputPage"
Trevor Parscal [Sat, 30 Mar 2013 00:13:16 +0000 (00:13 +0000)]
Merge "Add RL targets support to OutputPage"

11 years agoMove QoS_Atomic -> QOS_ATOMIC.
Aaron Schulz [Thu, 28 Mar 2013 21:00:09 +0000 (14:00 -0700)]
Move QoS_Atomic -> QOS_ATOMIC.

Change-Id: I876272bd440affab0e934199895e12fe2a5c9449

11 years agoMake ResourceLoaderStartupModule work on mobile
jrobson [Fri, 29 Mar 2013 21:26:03 +0000 (14:26 -0700)]
Make ResourceLoaderStartupModule work on mobile

Change-Id: I795828ac05e2b71499db6a328004be4516849f7d

11 years agoMerge "(Bug 23472) Removed undesirable space after external link url in printout"
Yuvipanda [Fri, 29 Mar 2013 21:09:36 +0000 (21:09 +0000)]
Merge "(Bug 23472) Removed undesirable space after external link url in printout"

11 years agoSeveral Parsoid-specific tests for serializer/parser edge cases.
Subramanya Sastry [Fri, 29 Mar 2013 18:33:15 +0000 (13:33 -0500)]
Several Parsoid-specific tests for serializer/parser edge cases.

Added several serializer tests
* For catching future serializer regressions.
* For fixing existing incorrect serialization.

Added couple parser tests
* For testing encap of partially-tpl-generated attribute key
* For testing lists interrupted by comment-lines

Change-Id: Ifbb7da59f65e790b66a621b7964179e4eb1f3fc4

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Fri, 29 Mar 2013 20:50:48 +0000 (20:50 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoRemove rel="next" that accompanied returnto.
Matthew Flaschen [Fri, 29 Mar 2013 18:52:59 +0000 (14:52 -0400)]
Remove rel="next" that accompanied returnto.

Removed rel="next" link that was put on every
page that had a returnto because otherwise
Firefox (and possibly others) might prefetch
the page, which is not desired in returnto
situations.

Bug: 46680
Change-Id: Ifaf40c663dc25e51bffc317144d9bdc1dab21785

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 29 Mar 2013 20:06:21 +0000 (20:06 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I54df77791c76bec5602b16c9af6132995458e9b6

11 years ago(bug 46682) Drop doc mention of removed importUseModWiki.php script
Brion Vibber [Fri, 29 Mar 2013 18:31:44 +0000 (11:31 -0700)]
(bug 46682) Drop doc mention of removed importUseModWiki.php script

The script was removed in commit f51b580f0c7ee63539e16d3017f8dd0de0ee2391
(October 2011) due to lack of maintenance.

Bug: 46682
Change-Id: Ida8369d4ad9326664b072adb0cb73f2f24465d1e

11 years agoMerge "Revert "Apply IP blocks to X-Forwarded-For header""
Aaron Schulz [Fri, 29 Mar 2013 19:57:34 +0000 (19:57 +0000)]
Merge "Revert "Apply IP blocks to X-Forwarded-For header""

11 years agoMerge "Made sure MediaTransformOutput::getLocalCopyPath handles storage paths."
Aaron Schulz [Fri, 29 Mar 2013 19:15:05 +0000 (19:15 +0000)]
Merge "Made sure MediaTransformOutput::getLocalCopyPath handles storage paths."

11 years agoRevert "Apply IP blocks to X-Forwarded-For header"
Aaron Schulz [Fri, 29 Mar 2013 19:13:35 +0000 (19:13 +0000)]
Revert "Apply IP blocks to X-Forwarded-For header"

Test are now starting to fail for everything.

This reverts commit a5d70e3ae6b43743b63f8d4e8efdfd6e26e35d40

Change-Id: I30c9eb9c00be12ff080e85452e17c2a310f03bd3

11 years agoAvoid sending multiple UDP packets for the same key in wfIncrStats().
Aaron Schulz [Thu, 28 Mar 2013 20:18:30 +0000 (13:18 -0700)]
Avoid sending multiple UDP packets for the same key in wfIncrStats().

* This should help reduce collector data loss.

Change-Id: Ibe55648422d1b8aac86dd6fa83973d3c8715b0aa

11 years agoMerge "Apply IP blocks to X-Forwarded-For header"
jenkins-bot [Fri, 29 Mar 2013 18:42:50 +0000 (18:42 +0000)]
Merge "Apply IP blocks to X-Forwarded-For header"

11 years agoMerge "WebRequest::getRequestURL: Follow up Ibe00a6b8"
jenkins-bot [Fri, 29 Mar 2013 18:32:00 +0000 (18:32 +0000)]
Merge "WebRequest::getRequestURL: Follow up Ibe00a6b8"

11 years agoApply IP blocks to X-Forwarded-For header
Skizzerz [Sat, 17 Nov 2012 23:23:09 +0000 (17:23 -0600)]
Apply IP blocks to X-Forwarded-For header

Adds a new configuration variable ($wgApplyIpBlocksToXff), which when
enabled will scan the XFF header for IP addresses and check if any of
them have been blocked. $wgApplyIpBlocksToXff is disabled by default.

Bug: 23343
Change-Id: I3e38b94d10600a60d2d4857de54307f34c4662c4

11 years agoMerge "Fix link target and retina thumbnails for manual thumbnails. (Bug 45405.)"
Brion VIBBER [Fri, 29 Mar 2013 17:48:41 +0000 (17:48 +0000)]
Merge "Fix link target and retina thumbnails for manual thumbnails. (Bug 45405.)"

11 years agoMerge "[JobQueue] Added more isQueueDeprioritized() checks to avoid refreshLinks...
jenkins-bot [Fri, 29 Mar 2013 17:44:06 +0000 (17:44 +0000)]
Merge "[JobQueue] Added more isQueueDeprioritized() checks to avoid refreshLinks spam."

11 years agoWebRequest::getRequestURL: Follow up Ibe00a6b8
Kevin Israel [Wed, 27 Mar 2013 23:44:48 +0000 (19:44 -0400)]
WebRequest::getRequestURL: Follow up Ibe00a6b8

* Only match consecutive slashes at the beginning of the URL, where
  they are actually a problem.
* Fix bug 46607 in cases where the server provides an absolute URL.

Change-Id: Ibe00a6b8722786170d09b846c1c4054b73da3d9e

11 years agoFix link target and retina thumbnails for manual thumbnails. (Bug 45405.)
C. Scott Ananian [Wed, 27 Feb 2013 00:12:12 +0000 (19:12 -0500)]
Fix link target and retina thumbnails for manual thumbnails. (Bug 45405.)

The output for [[Image:Bad.jpg|thumb=Foobar.jpg|Title]] used to be:

<div class="thumb tright"><div class="thumbinner" style="width:1943px;"><a
href="/wiki/File:Foobar.jpg" class="image"><img alt=""
src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220"
class="thumbimage" srcset="http://example.com/images/0/09/Bad.jpg 1.5x,
http://example.com/images/0/09/Bad.jpg 2x" /></a>  <div
class="thumbcaption"><div class="magnify"><a href="/wiki/File:Bad.jpg"
class="internal" title="Enlarge"><img
src="/skins/common/images/magnify-clip.png" width="15" height="11" alt=""
/></a></div>Title</div></div></div>

Note that the target of the <a> is the thumb, not the original image,
and that the srcset is loading the full resolution version of Bad.jpg.

The attached patches fix the link target and srcset issues
(suppressing the srcset when a manual thumb is used).  It also adds a
new "Thumb.png" pseudo-file to the parserTests so that we can write
new tests documenting how manual thumbnails are expected to work,
and adds the 'php' option to the thumbnail tests (since the Parsoid
parser generates different output).

Change-Id: I5be80bfce855b85f9debf3ef1776b877d1f84b9f

11 years agoMerge "OpenSearch: Error for unsupported formats and adding format=jsonfm"
jenkins-bot [Fri, 29 Mar 2013 12:03:01 +0000 (12:03 +0000)]
Merge "OpenSearch: Error for unsupported formats and adding format=jsonfm"

11 years ago[JobQueue] Added more isQueueDeprioritized() checks to avoid refreshLinks spam.
Aaron Schulz [Fri, 29 Mar 2013 04:00:42 +0000 (21:00 -0700)]
[JobQueue] Added more isQueueDeprioritized() checks to avoid refreshLinks spam.

Change-Id: I29cb22ed471f129efba2bb7b0743c700456f0f4d

11 years agoMerge "Omit RC_EXTERNAL edits from UDP feed"
jenkins-bot [Fri, 29 Mar 2013 02:15:55 +0000 (02:15 +0000)]
Merge "Omit RC_EXTERNAL edits from UDP feed"

11 years agoOmit RC_EXTERNAL edits from UDP feed
aude [Wed, 20 Feb 2013 12:02:07 +0000 (12:02 +0000)]
Omit RC_EXTERNAL edits from UDP feed

- bots and tools can get these edits from the feed of the external wiki

Change-Id: Id9fbbb2463516b47798f9120b039004c94c49e0b

11 years agoBump 1.22
Reedy [Mon, 25 Mar 2013 19:19:53 +0000 (19:19 +0000)]
Bump 1.22

Change-Id: Ib257f41b18764e7363d2e4aac661da76bed67413

11 years agoMerge "If isConfirmedEmail (already confirmed), skip dbtouch/hook call"
jenkins-bot [Thu, 28 Mar 2013 22:40:30 +0000 (22:40 +0000)]
Merge "If isConfirmedEmail (already confirmed), skip dbtouch/hook call"

11 years agoIf isConfirmedEmail (already confirmed), skip dbtouch/hook call
Matthew Flaschen [Thu, 28 Mar 2013 22:29:22 +0000 (18:29 -0400)]
If isConfirmedEmail (already confirmed), skip dbtouch/hook call

Bug: 46655
Change-Id: I5ea64611f68e01b1e82cd9dbe564123e81b17ed9

11 years agoMerge "adding test cases for bug 42353, code will be submitted in a separate review...
GWicke [Thu, 28 Mar 2013 22:16:16 +0000 (22:16 +0000)]
Merge "adding test cases for bug 42353, code will be submitted in a separate review for Parsoid"