lhc/web/wiklou.git
9 years agoChange position of <model> and <format> tags in XML dumps.
daniel [Fri, 24 Oct 2014 13:48:20 +0000 (15:48 +0200)]
Change position of <model> and <format> tags in XML dumps.

Bug: 72417
Change-Id: I1d11ce8147cf0bf0018e3931202f533afd4ea93e

9 years agoMerge "Allow /-/ in MediaWikiVersionFetcher::fetchVersion"
jenkins-bot [Fri, 31 Oct 2014 15:02:58 +0000 (15:02 +0000)]
Merge "Allow /-/ in MediaWikiVersionFetcher::fetchVersion"

9 years agoMerge "Remove double semicolon"
jenkins-bot [Fri, 31 Oct 2014 11:30:00 +0000 (11:30 +0000)]
Merge "Remove double semicolon"

9 years agoFix doc of WikiPageTest::newPage
umherirrender [Fri, 31 Oct 2014 10:44:16 +0000 (11:44 +0100)]
Fix doc of WikiPageTest::newPage

Change-Id: Id60db0ede2f2ead8a1cd524f26bcb87cfbd0b604

9 years agoAllow /-/ in MediaWikiVersionFetcher::fetchVersion
umherirrender [Fri, 31 Oct 2014 09:33:40 +0000 (10:33 +0100)]
Allow /-/ in MediaWikiVersionFetcher::fetchVersion

Alters MediaWikiVersionFetcher::fetchVersion() so that tests allow
versions to use Semantic Versioning (http://semver.org/)

See I2255ac2999ad207203fa6514f2e1b23f5d7965d7 for the fix in REL1_24

Change-Id: I6e9e154f864e771a02ae1da0e1530afe7f8a4cd0

9 years agoMerge "API: Fix simplified continuation module skipping"
jenkins-bot [Thu, 30 Oct 2014 23:23:47 +0000 (23:23 +0000)]
Merge "API: Fix simplified continuation module skipping"

9 years agoRemove collateOnly() from ProfilerStandard and subclasses
Chad Horohoe [Thu, 30 Oct 2014 22:18:22 +0000 (15:18 -0700)]
Remove collateOnly() from ProfilerStandard and subclasses

All implementations had this set to true, so remove the needless
abstraction and function calls. Child classes that do want to
differentiate here can just set the member variable on construction.

Change-Id: I81a4e6605bdec1fc1a977b5aa1ee1c5853d5ca5b

9 years agoMerge "Import.php: Use Config instead of globals"
jenkins-bot [Thu, 30 Oct 2014 22:42:00 +0000 (22:42 +0000)]
Merge "Import.php: Use Config instead of globals"

9 years agoRemove ProfileMwprof
Chad Horohoe [Thu, 30 Oct 2014 18:55:11 +0000 (11:55 -0700)]
Remove ProfileMwprof

An interesting experiment, but it was never completely fleshed out
and represents an anti-pattern as the only class that doesn't follow
the Profiler -> ProfilerStandard inheritance.

Since we want to refactor this to split profiling and profiling output
we need this unused but difficult to refactor code gone.

Maybe in the future after things are refactored and someone has the
time or inclination this could be dusted off again.

Change-Id: I1fd8813894e1fe88652b0c17b5ad8f42666bf776

9 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Thu, 30 Oct 2014 21:13:26 +0000 (21:13 +0000)]
Merge "Localisation updates from https://translatewiki.net."

9 years agoMerge "mediawiki.api: Transform arrays with join('|') in query parameters"
jenkins-bot [Thu, 30 Oct 2014 21:09:23 +0000 (21:09 +0000)]
Merge "mediawiki.api: Transform arrays with join('|') in query parameters"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 30 Oct 2014 21:03:56 +0000 (22:03 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I44200ac58db6e3a43bf305b9ec16039af7cfb960

9 years agoMerge "Fixed spacing"
jenkins-bot [Thu, 30 Oct 2014 20:09:54 +0000 (20:09 +0000)]
Merge "Fixed spacing"

9 years agoMerge "Fully replace Title::moveTo() with MovePage"
jenkins-bot [Thu, 30 Oct 2014 20:06:27 +0000 (20:06 +0000)]
Merge "Fully replace Title::moveTo() with MovePage"

9 years agoMerge "Add LinkBatch to Special:LinkSearch"
jenkins-bot [Thu, 30 Oct 2014 19:56:02 +0000 (19:56 +0000)]
Merge "Add LinkBatch to Special:LinkSearch"

9 years agoAdd executable rights for executable (bash) files
Southparkfan [Thu, 30 Oct 2014 19:00:50 +0000 (15:00 -0400)]
Add executable rights for executable (bash) files

I hope these are the last ones.

Change-Id: I281531d8f90932b2cb4a8a99554d4b80607fbaee

9 years agoAPI: Add doc warning to ApiPageSet::populateFromQueryResult
Brad Jorsch [Thu, 30 Oct 2014 17:23:09 +0000 (13:23 -0400)]
API: Add doc warning to ApiPageSet::populateFromQueryResult

The cause of bug 72764 was an extension misusing
ApiPageSet::populateFromQueryResult(). Add a warning in the docs for
that method about proper usage.

Bug: 72764
Change-Id: I5b0a069d796f7f41ab0b16048d7b3d6600207383

9 years agochmod 755 bash & Perl files, chmod 644 .css file
Southparkfan [Fri, 24 Oct 2014 18:12:46 +0000 (14:12 -0400)]
chmod 755 bash & Perl files, chmod 644 .css file

Bug: 71972
Change-Id: I16d6ffde113838fc431bffaf00be1574d5a0303a

9 years agoAPI: Actually use api-help-param-no-description
Brad Jorsch [Tue, 28 Oct 2014 17:23:34 +0000 (13:23 -0400)]
API: Actually use api-help-param-no-description

If $description is array( '' ), that should still trigger display of the
message.

Change-Id: Ifeb62d3c139e457ad6cfaddadc2a99d39f99948f

9 years agoMerge "Require PHP >= 5.3.3"
Kunal Mehta [Thu, 30 Oct 2014 17:56:08 +0000 (17:56 +0000)]
Merge "Require PHP >= 5.3.3"

9 years agoMerge "Update OOjs UI to v0.1.0-pre (da4b0d5c14)"
jenkins-bot [Thu, 30 Oct 2014 17:46:30 +0000 (17:46 +0000)]
Merge "Update OOjs UI to v0.1.0-pre (da4b0d5c14)"

9 years agoAPI: Fix simplified continuation module skipping
Brad Jorsch [Thu, 30 Oct 2014 17:30:45 +0000 (13:30 -0400)]
API: Fix simplified continuation module skipping

The simplified continuation includes a continuation parameter to
indicate when the prop/list/meta modules are complete, so it can skip
executing them.

But if someone submitted a malformed value for 'continue', it might
decide that the generator was complete but still try to uselessly
execute the prop modules.

Bug: 72764
Change-Id: I6af24e5d4f30e64782fb7dd1c2211ebdd4ec2317

9 years agoRequire PHP >= 5.3.3
Kunal Mehta [Fri, 24 Oct 2014 01:21:50 +0000 (18:21 -0700)]
Require PHP >= 5.3.3

Bug: T839
Change-Id: Iac827ef8505ff0653a40e45d759b0f79619351ee

9 years agoRemove double semicolon
umherirrender [Thu, 30 Oct 2014 16:58:21 +0000 (17:58 +0100)]
Remove double semicolon

Change-Id: I96b6210d24ee110327feef01907d81630c9fb330

9 years agoFixed spacing
umherirrender [Thu, 30 Oct 2014 16:50:19 +0000 (17:50 +0100)]
Fixed spacing

- Changed spaces to tabs for indentation
- space after 'function'/'if'
- Added/Removed space after parenthesis/brackets/end of line
- Removed space after cast

Change-Id: I0e8e6a19b84b5e1308b632a0266cb78f688494ee

9 years agoParse 'upload_source_url' message on SpecialUpload
Marius Hoch [Tue, 28 Oct 2014 20:30:34 +0000 (21:30 +0100)]
Parse 'upload_source_url' message on SpecialUpload

Commons wants to use wikitext over there:
https://commons.wikimedia.org/wiki/MediaWiki:Upload_source_url

Change-Id: I7625fb58388de901b93744aa6d21de433f671483

9 years agoMerge "Add a note when the return value was added to mediawiki.loader.using"
jenkins-bot [Thu, 30 Oct 2014 09:05:51 +0000 (09:05 +0000)]
Merge "Add a note when the return value was added to mediawiki.loader.using"

9 years agoMerge "Support for message function in confirmCloseWindow"
jenkins-bot [Thu, 30 Oct 2014 08:43:15 +0000 (08:43 +0000)]
Merge "Support for message function in confirmCloseWindow"

9 years agoAdd a note when the return value was added to mediawiki.loader.using
Niklas Laxström [Thu, 30 Oct 2014 07:59:24 +0000 (08:59 +0100)]
Add a note when the return value was added to mediawiki.loader.using

Change-Id: I090b0cdb7be57d6cd93318ee28cab434a0d484f4

9 years agoAdd LinkBatch to Special:LinkSearch
umherirrender [Fri, 26 Sep 2014 18:47:42 +0000 (20:47 +0200)]
Add LinkBatch to Special:LinkSearch

When building the result list, each link results in a database query.
The select is on the page table, so it is known, that each page exists,
but using Linker::linkKnown does not prepare the link for stubthreshold
or redirect marker.

Change-Id: I8f73d398f510f252ac8d5a0fd04ccb0feaf79cc4

9 years agoMerge "Fix creating non-parameterized hashes in ParameterizedPassword"
jenkins-bot [Thu, 30 Oct 2014 00:17:07 +0000 (00:17 +0000)]
Merge "Fix creating non-parameterized hashes in ParameterizedPassword"

9 years agoUpdate OOjs UI to v0.1.0-pre (da4b0d5c14)
James D. Forrester [Thu, 30 Oct 2014 00:10:22 +0000 (17:10 -0700)]
Update OOjs UI to v0.1.0-pre (da4b0d5c14)

New changes:
e830a4d Conf for doxygen based PHP doc
80ecf60 Semiautomatically compare and synchronise JS and PHP docs
521fa21 Move 'readOnly' from InputWidget to TextInputWidget
9130eb3 OoUiTag: HTML-escape everything by default
0488141 Generate and run a JS/PHP comparison test suite
c552fea ButtonInputWidget: Explicitly disallow setting value when using <input/>
ab69d96 Apex, MediaWiki themes: Move colour definitions into LESS variables
d3367bb Turn FieldLayout into a <label/>
8a38c10 Provide abstract getLookupCacheItemFromData in LookupInputWidget
da4b0d5 Set input/menu widgets to have a max-width expanding to 100% rather than hard-coded

Change-Id: Id3e280a03fc305dc5cb706bc1208246275d169cb

9 years agoFixed possible db error log spam when cluster=* in wfWaitForSlaves()
Aaron Schulz [Wed, 29 Oct 2014 23:36:55 +0000 (16:36 -0700)]
Fixed possible db error log spam when cluster=* in wfWaitForSlaves()

Change-Id: Idd385cddb0fa9f56bddc46d41ae584ca65bc45ed

9 years agoMerge "resourceloader: Add support for delivering templates"
jenkins-bot [Wed, 29 Oct 2014 20:58:57 +0000 (20:58 +0000)]
Merge "resourceloader: Add support for delivering templates"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 29 Oct 2014 20:37:18 +0000 (21:37 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I7ffe726ba42ee3e2ab55cc9088017c84348ed9c9

9 years agotest: Check banana status for includes/api/i18n/* too
James D. Forrester [Wed, 29 Oct 2014 20:07:10 +0000 (13:07 -0700)]
test: Check banana status for includes/api/i18n/* too

Change-Id: I9244130eea50abe200abd06a4576a001067919f1

9 years agoresourceloader: Add support for delivering templates
jdlrobson [Fri, 10 Oct 2014 00:07:14 +0000 (17:07 -0700)]
resourceloader: Add support for delivering templates

A base ResourceLoaderModule::getTemplates() exists for subclasses
to override. An implementation is provided for ResourceLoaderFileModule.

For file modules, templates can be specified in the following manner:

'example' => array(
'templates' => array(
'bar' => 'templates/foo.html',
),
'scripts' => 'example.js',
),

The delivery system is template language agnostic, and currently
only supports "compiling" plain HTML templates.

This also adds template support to the following modules as a POC:
* mediawiki.feedback
* mediawiki.action.view.postEdit
* mediawiki.special.upload

Works with $wgResourceLoaderStorageEnabled

Change-Id: Ia0c5c8ec960aa6dff12c9626cee41ae9a3286b76

9 years agoUse MWLogger logging for legacy logging methods
Bryan Davis [Fri, 21 Mar 2014 05:01:24 +0000 (23:01 -0600)]
Use MWLogger logging for legacy logging methods

Send wfDebug, wfDebugLog, wfLogDBError and wfLogDBError log messages to
the new MWLogger PSR-3 logger subsystem. Compatibility with the historic
logging operations of wfLogDBError are provided by MWLoggerLegacyLogger
and the MWLoggerLegacySpi logger factory.

Requires the MWLogger system introduced in I5c82299 and the Composer
managed libraries from Ie667944.

Change-Id: I1e5596d590144fbfdfd5f18bc42cf1ef0dbcac12

9 years agoSupport for message function in confirmCloseWindow
Mark Holmquist [Wed, 29 Oct 2014 18:30:54 +0000 (13:30 -0500)]
Support for message function in confirmCloseWindow

Change-Id: Iffe106cfc5430aaeb2c56b83316116b2c5dd5835

9 years agoMerge "Add more detailed upload stash error messages"
jenkins-bot [Wed, 29 Oct 2014 17:40:53 +0000 (17:40 +0000)]
Merge "Add more detailed upload stash error messages"

9 years agoFix spelling mistake: s/databses/database
Southparkfan [Wed, 29 Oct 2014 17:12:45 +0000 (13:12 -0400)]
Fix spelling mistake: s/databses/database

Change-Id: Id532b3724792eff5849813888533c251b99edc82

9 years agoAPI: Fix access on getExamplesMessages
Brad Jorsch [Tue, 28 Oct 2014 17:17:02 +0000 (13:17 -0400)]
API: Fix access on getExamplesMessages

ApiBase declares it protected, but for some reason I had made it public
in all subclasses.

Change-Id: I8a50d4f47e66c7f09137968d3941dc5cdc1d28e4

9 years agoSwitch to LOCK IN SHARE MODE in recordUpload2()
Aaron Schulz [Sun, 19 Oct 2014 02:47:22 +0000 (19:47 -0700)]
Switch to LOCK IN SHARE MODE in recordUpload2()

* We just need the latest data; the advisory locking in lock()
  already manages mutual exclusion.

Change-Id: I9af7a892b2dcafd30149332b0084f61d117c9cad

9 years agoRemove back-compat profiling configuration
Chad Horohoe [Wed, 29 Oct 2014 00:20:39 +0000 (17:20 -0700)]
Remove back-compat profiling configuration

This old style was deprecated like 3 or 4 releases ago

Change-Id: Ic61424aacb376151019a08ade214fea655d82a3f

9 years agomediawiki.api: Transform arrays with join('|') in query parameters
saper [Sun, 5 Oct 2014 23:52:19 +0000 (01:52 +0200)]
mediawiki.api: Transform arrays with join('|') in query parameters

Bug: 64570
Change-Id: Ie8ea48712dc7b726266e25080b2931aebe659f0d

9 years agoMerge "Deprecate internal ORMTable::unprefixFieldName(s)"
jenkins-bot [Tue, 28 Oct 2014 21:41:19 +0000 (21:41 +0000)]
Merge "Deprecate internal ORMTable::unprefixFieldName(s)"

9 years agoMerge "CoreTagHooks: Use parse() for output to HTML rather than text()"
jenkins-bot [Tue, 28 Oct 2014 20:46:44 +0000 (20:46 +0000)]
Merge "CoreTagHooks: Use parse() for output to HTML rather than text()"

9 years agoCoreTagHooks: Use parse() for output to HTML rather than text()
Bartosz Dziewoński [Tue, 28 Oct 2014 19:57:47 +0000 (20:57 +0100)]
CoreTagHooks: Use parse() for output to HTML rather than text()

Change-Id: I9f28afe185a24883fb575dd6df8a23c4ab233b64

9 years agoFully replace Title::moveTo() with MovePage
Kunal Mehta [Sat, 11 Oct 2014 05:43:02 +0000 (22:43 -0700)]
Fully replace Title::moveTo() with MovePage

* AbortMove hook is removed in favor of two more specificly focused
  hooks: MovePageCheckPermissions and MovePageIsValidMove.
** MovePageIsValidMove is for extensions to specify whether a page
   cannot be moved for technical reasons, and should not be
   overridden.
** MovePageCheckPermissions is for checking whether the given user
   is allowed to make the move.

* Title::moveNoAuth() deprecated
* Title::moveTo() deprecated
* Title::isValidMoveOperation() broken down into
  MovePage::isValidMove() and MovePage::checkPermissions().

* Title::getTitleProtection() is now public, and returns
  unprefixed fields

Change-Id: Ic5026384b92a0d68d628397ffe1de6e5b6183f02

9 years agoMerge "Update OOjs UI to v0.1.0-pre (deccd11549)"
jenkins-bot [Tue, 28 Oct 2014 17:30:55 +0000 (17:30 +0000)]
Merge "Update OOjs UI to v0.1.0-pre (deccd11549)"

9 years agoMerge "Localisation updates from https://translatewiki.net."
jenkins-bot [Tue, 28 Oct 2014 17:30:52 +0000 (17:30 +0000)]
Merge "Localisation updates from https://translatewiki.net."

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 28 Oct 2014 17:22:52 +0000 (18:22 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I56c63f14f34232741d1f6a3bdb3b64b2cd45e609

9 years agoUpdate OOjs UI to v0.1.0-pre (deccd11549)
James D. Forrester [Tue, 28 Oct 2014 16:52:31 +0000 (09:52 -0700)]
Update OOjs UI to v0.1.0-pre (deccd11549)

New changes:
be1f468 Localisation updates from https://translatewiki.net.
de6d500 Localisation updates from https://translatewiki.net.
049b28f Localisation updates from https://translatewiki.net.
a926d7d Fix a number of documentation syntax issues throughout the codebase
df625c4 Use primary colours for progress bar
d721cc1 Localisation updates from https://translatewiki.net.
c3aa4e1 [BREAKING CHANGE] Apply font-size: 0.8em; to non-isolated windows too
140509d [BREAKING CHANGE] If no $overlay is specified, default to this.$element
deccd11 Localisation updates from https://translatewiki.net.

Change-Id: Idf1f1c047dd414edc8cb80a6187055fc811dc95e

9 years agoMerge "ApiHelp: Fix PHP notice when "wrap" parameter is provided"
jenkins-bot [Tue, 28 Oct 2014 15:15:55 +0000 (15:15 +0000)]
Merge "ApiHelp: Fix PHP notice when "wrap" parameter is provided"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 28 Oct 2014 14:08:16 +0000 (15:08 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I24b13302922d658dc555df91bd1a460027f7f76d

9 years agoMerge "Update plural data to CLDR 26"
jenkins-bot [Tue, 28 Oct 2014 08:52:21 +0000 (08:52 +0000)]
Merge "Update plural data to CLDR 26"

9 years agoApiHelp: Fix PHP notice when "wrap" parameter is provided
Kevin Israel [Tue, 28 Oct 2014 06:48:49 +0000 (02:48 -0400)]
ApiHelp: Fix PHP notice when "wrap" parameter is provided

An incorrect variable name was used, so the "help" property of
the "help" object in the output was merely encoded as null.

Change-Id: Ia1a8c8ad4515e216998d4975aad3555f87d24380

9 years agodocs/database.txt: Don't mention $wgAntiLockFlags
Kevin Israel [Tue, 28 Oct 2014 03:32:22 +0000 (23:32 -0400)]
docs/database.txt: Don't mention $wgAntiLockFlags

Setting was removed in 12757b50f8da and is no longer used
on the Wikimedia cluster.

Change-Id: I0a6e0c029d3246f7a5a229411e66949469ab941e

9 years agoMerge "HTMLForm: Only apply cloner click event to form elements, not containing divs"
jenkins-bot [Mon, 27 Oct 2014 21:38:03 +0000 (21:38 +0000)]
Merge "HTMLForm: Only apply cloner click event to form elements, not containing divs"

9 years agoMerge "Maintenance script to clean up mismatched user names in ipblocks"
jenkins-bot [Mon, 27 Oct 2014 21:00:49 +0000 (21:00 +0000)]
Merge "Maintenance script to clean up mismatched user names in ipblocks"

9 years agoMerge "Use Parser::OT_PREPROCESS class const"
jenkins-bot [Mon, 27 Oct 2014 19:59:03 +0000 (19:59 +0000)]
Merge "Use Parser::OT_PREPROCESS class const"

9 years agoAdd more detailed upload stash error messages
Mark Holmquist [Fri, 24 Oct 2014 19:33:05 +0000 (14:33 -0500)]
Add more detailed upload stash error messages

There are seven (used) error types in the stash class, and we umbrella'd
them all into one error message, which is mighty silly. This should give
us more information.

Also added to the mw.Api.errors list so UploadWizard can handle them.

Change-Id: I79bf0c29a4cef19363d111cc1128e35256ae572a

9 years agoMerge "Validate cmstarthexsortkey/cmendhexsortkey to be valid hex"
jenkins-bot [Mon, 27 Oct 2014 19:17:13 +0000 (19:17 +0000)]
Merge "Validate cmstarthexsortkey/cmendhexsortkey to be valid hex"

9 years agoValidate cmstarthexsortkey/cmendhexsortkey to be valid hex
umherirrender [Sun, 26 Oct 2014 09:19:31 +0000 (10:19 +0100)]
Validate cmstarthexsortkey/cmendhexsortkey to be valid hex

Avoids: Warning: pack(): Type H: illegal hex digit N in
\includes\api\ApiQueryCategoryMembers.php on line 146

Bug: 40809
Change-Id: I1dd732ccec8e6991d0ceac443226f5c7e59fd853

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 27 Oct 2014 18:33:41 +0000 (19:33 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I1cecca3a0fe4c99a1ecfca9ac3c7178801812086

9 years agoHTMLForm: Only apply cloner click event to form elements, not containing divs
Brad Jorsch [Mon, 27 Oct 2014 17:59:40 +0000 (13:59 -0400)]
HTMLForm: Only apply cloner click event to form elements, not containing divs

Bug: 72568
Change-Id: I6bca511fdb183632bbe55707cbb7c3e9c55788fa

9 years agoMerge "Replace a few more logical operators"
jenkins-bot [Mon, 27 Oct 2014 17:59:06 +0000 (17:59 +0000)]
Merge "Replace a few more logical operators"

9 years agoMerge "SqlBagOStuff: reuse code of parent class"
jenkins-bot [Mon, 27 Oct 2014 17:56:11 +0000 (17:56 +0000)]
Merge "SqlBagOStuff: reuse code of parent class"

9 years agoMerge "Tweaked some of the default LockManager ttls"
jenkins-bot [Mon, 27 Oct 2014 17:51:39 +0000 (17:51 +0000)]
Merge "Tweaked some of the default LockManager ttls"

9 years agoMerge "API: Standardize usage of "ID" in docs"
jenkins-bot [Mon, 27 Oct 2014 17:16:57 +0000 (17:16 +0000)]
Merge "API: Standardize usage of "ID" in docs"

9 years agoMerge "Make $wgMWLoggerDefaultSpi more expressive"
jenkins-bot [Mon, 27 Oct 2014 17:08:04 +0000 (17:08 +0000)]
Merge "Make $wgMWLoggerDefaultSpi more expressive"

9 years agoAPI: Standardize usage of "ID" in docs
Brad Jorsch [Mon, 27 Oct 2014 16:51:29 +0000 (12:51 -0400)]
API: Standardize usage of "ID" in docs

Change-Id: I6c0571ceb836d35159964ead4abef09113230a68

9 years agoMaintenance script to clean up mismatched user names in ipblocks
Brad Jorsch [Mon, 27 Oct 2014 14:29:55 +0000 (10:29 -0400)]
Maintenance script to clean up mismatched user names in ipblocks

For blocks with ipb_user non-zero, the ipb_address field is supposed to
match user_name. But due to various bugs over the years, this doesn't
hold true.

Due to those old bugs, we also have rows with the same ipb_user (and
ipb_auto and ipb_anon_only, since those only apply to IP blocks) but
different ipb_address. Those also need cleaning up, both to prevent
a unique constraint violation and to stop errors in ApiQueryAllUsers.

Bug: 34014
Bug: 72560
Change-Id: I519078ec011dbd0043811a78c3f913792a4df7fe

9 years agoUpdate plural data to CLDR 26
Santhosh Thottingal [Mon, 22 Sep 2014 10:16:07 +0000 (15:46 +0530)]
Update plural data to CLDR 26

* The updates include incompatible changes for plural forms in Russian,
  Prussian, Tagalog, Manx and several languages that fall back to Russian.
  In addition there are minor changes for other languages.
* Test cases were updated to reflect these changes.

Bug: 62861
Change-Id: I7cce477925330fe5bbf51a8470060dc1223981d0

9 years agoMerge "Localisation updates from https://translatewiki.net."
jenkins-bot [Mon, 27 Oct 2014 00:11:25 +0000 (00:11 +0000)]
Merge "Localisation updates from https://translatewiki.net."

9 years agoMerge "Localisation updates from https://translatewiki.net."
jenkins-bot [Mon, 27 Oct 2014 00:11:00 +0000 (00:11 +0000)]
Merge "Localisation updates from https://translatewiki.net."

9 years agoMerge "Add mediawiki.userSuggest to Special:UserRights"
jenkins-bot [Mon, 27 Oct 2014 00:10:37 +0000 (00:10 +0000)]
Merge "Add mediawiki.userSuggest to Special:UserRights"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 26 Oct 2014 19:48:29 +0000 (20:48 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ieacc0d6d4d0ca696d91d3358a4d2415ed7d37659

9 years agoLocalisation updates from https://translatewiki.net.
Siebrand Mazeland [Sun, 26 Oct 2014 18:03:59 +0000 (19:03 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I7d8ecd624b63c3323afd159600d8cca3806a7760

9 years agoLocalisation updates from https://translatewiki.net.
Siebrand Mazeland [Sun, 26 Oct 2014 17:56:17 +0000 (18:56 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I1c1be5f954c274bb2479cd7068d32562db05b670

9 years agoMake $wgMWLoggerDefaultSpi more expressive
Bryan Davis [Thu, 23 Oct 2014 03:53:14 +0000 (21:53 -0600)]
Make $wgMWLoggerDefaultSpi more expressive

Allow $wgMWLoggerDefaultSpi to specify a more expressive object creation
by introducing a new ObjectFactory class which can process an array of
instructions to call either an object constructor or a factory method
with an array of arguments. This allows removal of the
$wgMWLoggerMonologSpiConfig global variable in favor of configuration
using $wgMWLoggerDefaultSpi.

New classes introduced:
; ObjectFactory
: Construct objects from configuration instructions.

Change-Id: If56cce5dcb1ad5712e238d6e2dab809a351f79be

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 25 Oct 2014 20:06:57 +0000 (22:06 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I4136dd569abb9273398730442102867e7c7d6969

9 years agoSqlBagOStuff: reuse code of parent class
Sergio Santoro [Sat, 25 Oct 2014 17:26:21 +0000 (19:26 +0200)]
SqlBagOStuff: reuse code of parent class

It'll be easier to change the time threshold (currently 10 years)
in the future.

Change-Id: I24005148d40c47905d5b20cfd506decef2ae447e

9 years agoMerge "Fix ("
jenkins-bot [Sat, 25 Oct 2014 00:30:57 +0000 (00:30 +0000)]
Merge "Fix ("

9 years agoFix (
Kunal Mehta [Sat, 25 Oct 2014 00:15:12 +0000 (17:15 -0700)]
Fix (

See <http://xkcd.com/859/>

Change-Id: I21113b158159d9a8a14045da87581937f71f42e3

9 years agoMake "View/restore X deleted edits" check permissions per title
Brian Wolff [Fri, 24 Oct 2014 22:40:42 +0000 (19:40 -0300)]
Make "View/restore X deleted edits" check permissions per title

This will ensure the prompt is shown for people who have
viewdeletedfile from f7aac5ae.

Change-Id: I6379413c8da01bcb878da8fbe77278bfc38529bc

9 years agoMerge "Add Oracle version of update-keys.sql"
jenkins-bot [Fri, 24 Oct 2014 22:23:36 +0000 (22:23 +0000)]
Merge "Add Oracle version of update-keys.sql"

9 years agoMerge "Add deprecated note to SkinTemplate"
jenkins-bot [Fri, 24 Oct 2014 22:23:20 +0000 (22:23 +0000)]
Merge "Add deprecated note to SkinTemplate"

9 years agomediawiki.ui: Add 'background-color: inherit' to match 'color: inherit'
Bartosz Dziewoński [Thu, 23 Oct 2014 08:50:09 +0000 (10:50 +0200)]
mediawiki.ui: Add 'background-color: inherit' to match 'color: inherit'

I'm torn on whether we should do this, or just remove 'color: inherit'.

Bug: 72192
Change-Id: Ie19e0ab03cd2e577a1c4527b083215c92b421a44

9 years agoAdd deprecated note to SkinTemplate
Florianschmidtwelzow [Fri, 24 Oct 2014 20:25:42 +0000 (22:25 +0200)]
Add deprecated note to SkinTemplate

Like mentioned in todo. Planned with 1.20, but now officially deprecated
since 1.25.

Change-Id: I2eabb642151f7e7ff05b52ff6718e78931604828

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 24 Oct 2014 19:49:18 +0000 (21:49 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I47cd4a8a02e237d3933691264ae82b050e48e341

9 years agoMerge "FormatJson::stripComments"
jenkins-bot [Fri, 24 Oct 2014 18:47:29 +0000 (18:47 +0000)]
Merge "FormatJson::stripComments"

9 years agoUse Parser::OT_PREPROCESS class const
umherirrender [Fri, 24 Oct 2014 18:40:19 +0000 (20:40 +0200)]
Use Parser::OT_PREPROCESS class const

Instead of the global const

Change-Id: Ica9a3fdd0a48bb3c71ebb2b84933149a9f275fac

9 years agoMerge "Allow search to return matching category"
jenkins-bot [Fri, 24 Oct 2014 17:01:58 +0000 (17:01 +0000)]
Merge "Allow search to return matching category"

9 years agoMerge "Remove useless sleep() in JobQueueTest"
jenkins-bot [Fri, 24 Oct 2014 16:46:08 +0000 (16:46 +0000)]
Merge "Remove useless sleep() in JobQueueTest"

9 years agoReplace a few more logical operators
Kevin Israel [Fri, 24 Oct 2014 14:42:19 +0000 (10:42 -0400)]
Replace a few more logical operators

Changed all remaining uses of 'and' (T_LOGICAL_AND) and 'or'
(T_LOGICAL_OR) except those in includes/libs/lessc.inc.php.

In maintenance/generateSitemap.php, also slightly cleaned up
touched code:

* Inlined GenerateSitemap::init_path().
* Removed the redundant `$fspath && !is_dir( $fspath )` check.
* Return a nonzero exit code if wfMkdirParents() fails.

There are still uses of 'xor' (T_LOGICAL_XOR) in the following
files, which I left as-is:

* includes/Export.php
* includes/htmlform/HTMLCheckField.php
* includes/Autopromote.php
* maintenance/importDump.php
* maintenance/backup.inc

Change-Id: I73cb20da989e90b52782e7499f633debd5ad265d

9 years agoRemove useless sleep() in JobQueueTest
Antoine Musso [Wed, 22 Oct 2014 21:22:10 +0000 (23:22 +0200)]
Remove useless sleep() in JobQueueTest

I noticed JobQueueTest::testRootDeduplication takes ~ 6.5 seconds, which
is due to the test method using sleep(1) and being passed the provider
provider_queueLists which yields six items.

The reason is to have the array returned by Job::newRootJobParams() to
have an incread value for 'rootJobTimestamp'.  Instead, just copy the
previous array of parameters and increment the UNIX timestamp and
converting back to TS_MW format.

Change-Id: I75066df73f9f92e56b89eb6d928c41e949a2d6a9

9 years agoor -> ||
Reedy [Fri, 24 Oct 2014 10:26:14 +0000 (11:26 +0100)]
or -> ||

Change-Id: Ic591f06f70c68bb2912b7f028f7f988eb658375d

9 years agoTweaked some of the default LockManager ttls
Aaron Schulz [Fri, 24 Oct 2014 05:19:19 +0000 (22:19 -0700)]
Tweaked some of the default LockManager ttls

Change-Id: Ic2c58ef02dc686f38840fe974a9d2858cd15c019

9 years agoMerge "MessagesSv.php: Also remove lies"
jenkins-bot [Fri, 24 Oct 2014 01:29:24 +0000 (01:29 +0000)]
Merge "MessagesSv.php: Also remove lies"