lhc/web/wiklou.git
11 years agoAvoid fatal errors with uselang=s
Niklas Laxström [Wed, 3 Apr 2013 10:35:29 +0000 (10:35 +0000)]
Avoid fatal errors with uselang=s

languages is not a subclass of Language

Force valid built-in language codes to be at least two letters long.

Bug: 46710
Change-Id: Ife8885ed4bdb3a017a54e063f5dc58468ba231d5

11 years agoMerge "Added "cluster" parameter to wfWaitForSlaves() for external DBs."
jenkins-bot [Fri, 5 Apr 2013 11:21:30 +0000 (11:21 +0000)]
Merge "Added "cluster" parameter to wfWaitForSlaves() for external DBs."

11 years agoMerge changes Ic22a190c,Ia5b37f99
jenkins-bot [Fri, 5 Apr 2013 03:59:35 +0000 (03:59 +0000)]
Merge changes Ic22a190c,Ia5b37f99

* changes:
  Removed duplicate class registration
  Removed pointless static declaration

11 years agoMerge "mergeMessageFileList.php: abort on read error"
jenkins-bot [Fri, 5 Apr 2013 03:21:29 +0000 (03:21 +0000)]
Merge "mergeMessageFileList.php: abort on read error"

11 years agoRemoved useless clear() call in WikiPage::doPurge().
Aaron Schulz [Tue, 2 Apr 2013 23:21:20 +0000 (16:21 -0700)]
Removed useless clear() call in WikiPage::doPurge().

Change-Id: I3bc251ea987f089342c054afd5a02ccf321f4fe7

11 years agomergeMessageFileList.php: abort on read error
Tim Starling [Fri, 5 Apr 2013 01:03:31 +0000 (12:03 +1100)]
mergeMessageFileList.php: abort on read error

If there is a parse error or if one of the files in the extension list
doesn't exist, exit with an error. mw-update-l10n has set -e so it will
abort without syncing the new file.

Change-Id: Idaad65783127b075626c102a8dc02e22df1588b7

11 years agoAdded "cluster" parameter to wfWaitForSlaves() for external DBs.
Aaron Schulz [Thu, 4 Apr 2013 23:10:56 +0000 (16:10 -0700)]
Added "cluster" parameter to wfWaitForSlaves() for external DBs.

Change-Id: I226a1793dfb901de8e1c0ac40c1dc3ad890de95a

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Thu, 4 Apr 2013 20:17:54 +0000 (20:17 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMerge "Set lang in api createaccount regardless of $wgLoginLanguageSelector"
jenkins-bot [Thu, 4 Apr 2013 19:19:30 +0000 (19:19 +0000)]
Merge "Set lang in api createaccount regardless of $wgLoginLanguageSelector"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 4 Apr 2013 18:45:33 +0000 (18:45 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Id8c6772f24ba3a569be66e210a99b89c3091e9a3

11 years agoMerge "Adding wfLogWarning for production warnings."
jenkins-bot [Thu, 4 Apr 2013 16:52:45 +0000 (16:52 +0000)]
Merge "Adding wfLogWarning for production warnings."

11 years agoRemove ExternalUser authentication code
Chad Horohoe [Wed, 20 Mar 2013 19:48:28 +0000 (15:48 -0400)]
Remove ExternalUser authentication code

This was an experimental authentication system intoduced a couple
of years ago with a pretty narrow use-case. It's been pretty much
ignored since introduction, and makes login more complicated than
it needs to be.

I didn't drop the external_user table on the off-chance someone
out there actually has data in it, but they should use AuthPlugin
for their external authentication needs.

Change-Id: I794338dbb75961ee033d41fa44bb7aa22e54f447

11 years agoMerge "Drop ClickTracking integration from mw.user.bucket"
jenkins-bot [Thu, 4 Apr 2013 09:39:13 +0000 (09:39 +0000)]
Merge "Drop ClickTracking integration from mw.user.bucket"

11 years agoMerge "Add to/tweak mediawiki and jqueryMsg JS tests, fix comment"
jenkins-bot [Thu, 4 Apr 2013 09:17:19 +0000 (09:17 +0000)]
Merge "Add to/tweak mediawiki and jqueryMsg JS tests, fix comment"

11 years agoImprove mediawiki.js docs:
Matthew Flaschen [Thu, 4 Apr 2013 00:23:06 +0000 (20:23 -0400)]
Improve mediawiki.js docs:

* Fix an error in the Map.set documentation.
* Use JSDuck formatting in more places.

Change-Id: I5e2d271b45c1dbb33fa67abe4a2cc79380831a23

11 years agoHTMLForm button behaviour modifications
Matt Walker [Sat, 9 Mar 2013 01:30:49 +0000 (17:30 -0800)]
HTMLForm button behaviour modifications

- Buttons can now be marked disabled and they will not be clickable.
- The default submit button may now be opted out of.

Change-Id: I8293a3c09da51152bfc7f6f6951416c71ce0bb38

11 years agoDrop ClickTracking integration from mw.user.bucket
Ori Livneh [Mon, 28 Jan 2013 07:20:01 +0000 (23:20 -0800)]
Drop ClickTracking integration from mw.user.bucket

This change set drops the 'tracked' option from mw.user.bucket, which
previous triggered logging via the ClickTracking extension.

Change-Id: I1a57df2ba60dba6041ecad7dd5c87519eb5d143e

11 years agoMost important documentation fix
Chad Horohoe [Wed, 3 Apr 2013 18:53:05 +0000 (14:53 -0400)]
Most important documentation fix

Change-Id: I0482144112345ca76ed3d95e3ad3b846cce4d87b

11 years agoMerge "(bug 46615) updateCollation.php: sanity check the collation before proceeding"
Brian Wolff [Thu, 4 Apr 2013 01:15:46 +0000 (01:15 +0000)]
Merge "(bug 46615) updateCollation.php: sanity check the collation before proceeding"

11 years agoMerge "Remove non-functional handling of curl_error()"
jenkins-bot [Thu, 4 Apr 2013 00:08:20 +0000 (00:08 +0000)]
Merge "Remove non-functional handling of curl_error()"

11 years agoMerge "ResourceLoader: Honor $wgAllow* settings in site/user modules"
jenkins-bot [Wed, 3 Apr 2013 23:55:13 +0000 (23:55 +0000)]
Merge "ResourceLoader: Honor $wgAllow* settings in site/user modules"

11 years agoMerge "Test: Assert that modules loaded correctly."
jenkins-bot [Wed, 3 Apr 2013 23:51:52 +0000 (23:51 +0000)]
Merge "Test: Assert that modules loaded correctly."

11 years agoMerge "OutputPage: Set empty modules to state 'ready' instead of 'missing'."
jenkins-bot [Wed, 3 Apr 2013 23:49:03 +0000 (23:49 +0000)]
Merge "OutputPage: Set empty modules to state 'ready' instead of 'missing'."

11 years agoAdd to/tweak mediawiki and jqueryMsg JS tests, fix comment
Matthew Flaschen [Tue, 12 Feb 2013 21:51:35 +0000 (16:51 -0500)]
Add to/tweak mediawiki and jqueryMsg JS tests, fix comment

* Remove getOuterHtml.
* Use htmlEqual where getOuterHtml was used, among other places.
* The comment reflected a change I considered making, but did not in the end.
* Add a few link tests
* Minor tweaks to other test code for consistency
* Replace wikiGetlink with explicit output

Change-Id: Id6a857c9686901f8db4944fcc081d4b9c4457fa8

11 years agoSpecify the utf-8 charset on error messages.
Platonides [Wed, 3 Apr 2013 23:28:33 +0000 (01:28 +0200)]
Specify the utf-8 charset on error messages.

Although the contents of error messages are English text,
and thus it's irrelevant that it gets interpreted as
iso-8859-1 instead of utf-8, $wgSitename is printed by
DBConnectionError::searchForm(), and that can contain utf-8.

Cached pages may also be in utf-8.

Change-Id: I81c02493f0824cb010c80f4356f338787d78df6b

11 years agoMerge "jquery.makeCollapsible: events for collapsing/expanding, tests"
jenkins-bot [Wed, 3 Apr 2013 22:11:10 +0000 (22:11 +0000)]
Merge "jquery.makeCollapsible: events for collapsing/expanding, tests"

11 years agoMerge changes Icdd8f392,Ied13e5ab
jenkins-bot [Wed, 3 Apr 2013 22:08:07 +0000 (22:08 +0000)]
Merge changes Icdd8f392,Ied13e5ab

* changes:
  jquery.makeCollapsible: basic test suite
  jquery.makeCollapsible: use 'mw-collapsible' event namespace

11 years agoMerge "(bug 36400) API: Fix sorting for iwlinks, langlinks"
jenkins-bot [Wed, 3 Apr 2013 21:59:43 +0000 (21:59 +0000)]
Merge "(bug 36400) API: Fix sorting for iwlinks, langlinks"

11 years agoResourceLoader: Honor $wgAllow* settings in site/user modules
Timo Tijhof [Wed, 3 Apr 2013 20:50:08 +0000 (22:50 +0200)]
ResourceLoader: Honor $wgAllow* settings in site/user modules

Bug: 46858
Change-Id: I17b3a2c1df5d52458f92c715242003b34111432c

11 years agoTest: Assert that modules loaded correctly.
Timo Tijhof [Wed, 3 Apr 2013 19:17:08 +0000 (21:17 +0200)]
Test: Assert that modules loaded correctly.

Since mw.loader catches any uncaught exceptions that modules
throw at run time, it is hard for QUnit and/or the browser
(e.g. PhantomJS) to know about a failure because there is
no assert failure and no uncaught exception (window.onerror).

VisualEditor's init module, for example, has a problem (bug 45175)
that sometimes causes an error, causing none of the tests to run,
yet the QUnit run would finish successful with simply none of the
VE tests included in the results.

Bug: 44299
Change-Id: Ib6e2b8d1be3e38fd9f1b948407c62da550fce0b4

11 years agoAdded Job::hasRootJobParams() convenience function.
Aaron Schulz [Wed, 3 Apr 2013 20:51:02 +0000 (13:51 -0700)]
Added Job::hasRootJobParams() convenience function.

* Added a missing @since tag.

Change-Id: I887d55074007551040eee486dbb9e8e44106e5a9

11 years agoOutputPage: Set empty modules to state 'ready' instead of 'missing'.
Timo Tijhof [Wed, 3 Apr 2013 20:36:06 +0000 (22:36 +0200)]
OutputPage: Set empty modules to state 'ready' instead of 'missing'.

Some cases were already covered by I595b3af190, but in the case
where the module is disabled entirely it was setting it to missing.

This is inconsistent with the behaviour of load.php (which will implement
an empty module resulting in state=ready) and confusing as it
implies there is a problem (a missing module) whereas in fact it
isn't a problem. Modules that depend on it to allow customization
wouldn't load as it will fail on missing dependencies.

Also makes asserting problems (bug 44299) hard as it would have
to whitelist state 'missing' for user/site/user.groups.

Bug: 46857
Change-Id: I46b5bc6f714abe4b66186d7b7a14c69195f00ee1

11 years agoAdded some missing @since tags.
Aaron Schulz [Wed, 3 Apr 2013 20:13:36 +0000 (13:13 -0700)]
Added some missing @since tags.

Change-Id: I31c264aebf63f4bcaa3042f624e91dc27f5687e8

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Wed, 3 Apr 2013 20:09:20 +0000 (20:09 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMerge "[FileBackend] Clarified the noAccess/noListing docs a bit."
jenkins-bot [Wed, 3 Apr 2013 19:22:17 +0000 (19:22 +0000)]
Merge "[FileBackend] Clarified the noAccess/noListing docs a bit."

11 years agoCleaned up return types for getAllQueuedJobs() and getAllDelayedJobs().
Aaron Schulz [Wed, 3 Apr 2013 18:56:27 +0000 (11:56 -0700)]
Cleaned up return types for getAllQueuedJobs() and getAllDelayedJobs().

Change-Id: I305941c817dd13427d291b9265a71f9df9130f1c

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 3 Apr 2013 18:41:33 +0000 (18:41 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I3cdedadb10249e5ea330e89e4d7f2ab187f804cb

11 years ago(bug 36400) API: Fix sorting for iwlinks, langlinks
Brad Jorsch [Fri, 11 Jan 2013 00:22:03 +0000 (19:22 -0500)]
(bug 36400) API: Fix sorting for iwlinks, langlinks

The iwlinks and langlinks modules continue parameters imply ordering by
page then prefix then title. But in certain modes, the actual queries
use a different ordering, which may result in skipped or repeated
results.

This changeset fixes that. To do so, it needs to re-add an index
iwl_prefix_from_title which was mistakenly removed in 2010 (r69721). And
while it's doing that, it cleans up errors in the sqlite and postgresql
handling of the iwlinks indexes too.

Also, per Asher, make the iwl_prefix_from_title and
iwl_prefix_title_from indexes non-UNIQUE.

Change-Id: I607e8bf9183a2d8152a6127a81c83a0b5bba0c61

11 years agoImprove API 'origin' parameter description
Brad Jorsch [Wed, 3 Apr 2013 16:09:12 +0000 (12:09 -0400)]
Improve API 'origin' parameter description

When making CORS pre-flight requests, the origin parameter must still be
included. This means that it cannot be in the POST body, as that is not
sent for pre-flight.

Document that.

Change-Id: I3fc809cf2e4ca9c2566f62d32f96d24377c72863

11 years agojquery.makeCollapsible: events for collapsing/expanding, tests
MatmaRex [Sat, 23 Mar 2013 15:13:17 +0000 (16:13 +0100)]
jquery.makeCollapsible: events for collapsing/expanding, tests

Trigger a custom event to allow callers to hook to the
collapsing/expanding, allowing the module to be testable and making
it possible to e.g. implement persistence via cookies.

Added tests for the triggers themselves and for some basic
asynchronous collapsing functionality.

The following four events are fired (the namespace used is the same
one as the one used for firing the click event for initial toggle):
* beforeExpand.mw-collapsible
* beforeCollapse.mw-collapsible
* afterExpand.mw-collapsible
* afterCollapse.mw-collapsible

Change-Id: I580365770d061418a6734fcb54b2d86f2a821748

11 years agojquery.makeCollapsible: basic test suite
MatmaRex [Mon, 25 Mar 2013 19:16:07 +0000 (20:16 +0100)]
jquery.makeCollapsible: basic test suite

For now it just verifies that the very basic synchronous functionality
of the module works; not much more is possible without triggering some
events to hook to, and currently jquery.makeCollapsible doesn't
trigger any.

Change-Id: Icdd8f392e4921007a6bdfb3ae934949e4c875232

11 years agoRemove spaces around ::
umherirrender [Wed, 3 Apr 2013 10:57:10 +0000 (12:57 +0200)]
Remove spaces around ::

Change-Id: I24fe5ad907bcf5235aa91b650785c571502456a1

11 years agoMerge "phpcs: Pass includes/resourceloader/"
jenkins-bot [Wed, 3 Apr 2013 00:33:56 +0000 (00:33 +0000)]
Merge "phpcs: Pass includes/resourceloader/"

11 years agophpcs: Pass includes/resourceloader/
Timo Tijhof [Tue, 2 Apr 2013 20:28:40 +0000 (22:28 +0200)]
phpcs: Pass includes/resourceloader/

- A cast statement must not be followed by a space.
- The method parameter $context is never used.
- Avoid function calls in a FOR loop test part.
- Opening brace should be on the same line as closing parenthesis.

Change-Id: I0eba7fcc9ceab372003d1134857346690c525e87

11 years agojquery.makeCollapsible: use 'mw-collapsible' event namespace
MatmaRex [Tue, 2 Apr 2013 20:28:08 +0000 (22:28 +0200)]
jquery.makeCollapsible: use 'mw-collapsible' event namespace

For consistency with the module name.

Change-Id: Ied13e5abdec107771e80418feb4bb3b2f0d54567

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 agoRemove non-functional handling of curl_error()
Chad Horohoe [Tue, 2 Apr 2013 18:18:43 +0000 (14:18 -0400)]
Remove non-functional handling of curl_error()

Per the docs, curl_error() returns a full error string, not an int
or string of an int. Just remove that and pass the error back up.

Change-Id: I7434bb2abda056fdee4d670c192b304c0cdf24f7

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 agoRemoved duplicate class registration
jeroendedauw [Tue, 2 Apr 2013 15:26:44 +0000 (17:26 +0200)]
Removed duplicate class registration

Change-Id: Ic22a190c5d44e37e99067decfe8bec74422efcb1

11 years agoRemoved pointless static declaration
jeroendedauw [Tue, 2 Apr 2013 15:26:14 +0000 (17:26 +0200)]
Removed pointless static declaration

Change-Id: Ia5b37f99456614e8dbb1c44f3ebb4ad9398ce18e

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[FileBackend] Clarified the noAccess/noListing docs a bit.
Aaron Schulz [Mon, 1 Apr 2013 23:39:36 +0000 (16:39 -0700)]
[FileBackend] Clarified the noAccess/noListing docs a bit.

Change-Id: I3f008e3d1931423fc3c73af587d657040fdffe83

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