lhc/web/wiklou.git
8 years agoMerge "phpdoc @return MediaWikiTitleCodec in Title::getTitleParser"
jenkins-bot [Wed, 10 Feb 2016 19:42:19 +0000 (19:42 +0000)]
Merge "phpdoc @return MediaWikiTitleCodec in Title::getTitleParser"

8 years agoMerge "ApiMessage: Use a trait to avoid code duplication"
jenkins-bot [Wed, 10 Feb 2016 19:23:09 +0000 (19:23 +0000)]
Merge "ApiMessage: Use a trait to avoid code duplication"

8 years agoMerge "Remove unused imports from Session classes"
jenkins-bot [Wed, 10 Feb 2016 19:21:27 +0000 (19:21 +0000)]
Merge "Remove unused imports from Session classes"

8 years agoMerge "Revert "Limit ip-all/subnet-all ping limts per wiki""
CSteipp [Wed, 10 Feb 2016 19:17:51 +0000 (19:17 +0000)]
Merge "Revert "Limit ip-all/subnet-all ping limts per wiki""

8 years agoMerge "Remove "$that" from SessionManager"
jenkins-bot [Wed, 10 Feb 2016 19:15:23 +0000 (19:15 +0000)]
Merge "Remove "$that" from SessionManager"

8 years agoMerge "Stop doing $that = $this in includes/filebackend"
jenkins-bot [Wed, 10 Feb 2016 19:05:56 +0000 (19:05 +0000)]
Merge "Stop doing $that = $this in includes/filebackend"

8 years agoMerge "Add support for traits in ClassCollector"
MaxSem [Wed, 10 Feb 2016 19:01:54 +0000 (19:01 +0000)]
Merge "Add support for traits in ClassCollector"

8 years agoMerge "Stop doing $that = $this in includes/db"
jenkins-bot [Wed, 10 Feb 2016 18:40:31 +0000 (18:40 +0000)]
Merge "Stop doing $that = $this in includes/db"

8 years agoMerge "Stop doing $that = $this in includes/libs"
jenkins-bot [Wed, 10 Feb 2016 18:28:31 +0000 (18:28 +0000)]
Merge "Stop doing $that = $this in includes/libs"

8 years agoMerge "Stop doing $that = $this in includes/deferred"
jenkins-bot [Wed, 10 Feb 2016 18:16:41 +0000 (18:16 +0000)]
Merge "Stop doing $that = $this in includes/deferred"

8 years agoAdd support for traits in ClassCollector
victorbarbu [Sat, 6 Feb 2016 14:16:40 +0000 (16:16 +0200)]
Add support for traits in ClassCollector

Bug: T126116
Change-Id: Ifb81c6844565736111717736fe7649492e31f0f7

8 years agoStop doing $that = $this in includes/deferred
Ricordisamoa [Wed, 10 Feb 2016 17:22:59 +0000 (18:22 +0100)]
Stop doing $that = $this in includes/deferred

Closures support $this as of PHP 5.4

Change-Id: I2632d0c2bdc9e2fec72f1c64c3868dcb442ba871

8 years agoStop doing $that = $this in includes/jobqueue
Ricordisamoa [Wed, 10 Feb 2016 17:43:49 +0000 (18:43 +0100)]
Stop doing $that = $this in includes/jobqueue

Closures support $this as of PHP 5.4

Change-Id: Icf4eb9ffeab410c01c68a031ec6704cd83c2681e

8 years agoMerge "Add debug logging for the case that the API goes read only"
jenkins-bot [Wed, 10 Feb 2016 17:39:31 +0000 (17:39 +0000)]
Merge "Add debug logging for the case that the API goes read only"

8 years agoStop doing $that = $this in includes/filebackend
Ricordisamoa [Wed, 10 Feb 2016 17:33:52 +0000 (18:33 +0100)]
Stop doing $that = $this in includes/filebackend

Closures support $this as of PHP 5.4

Change-Id: Ib11139ec81336710c22146f9ff714e8afd3aa2cf

8 years agoStop doing $that = $this in includes/libs
Ricordisamoa [Wed, 10 Feb 2016 17:26:25 +0000 (18:26 +0100)]
Stop doing $that = $this in includes/libs

Closures support $this as of PHP 5.4

Change-Id: I1b5a5d7e619029684cb8d2a8d150fcc13051c2e0

8 years agoRemove "$that" from SessionManager
Brad Jorsch [Wed, 10 Feb 2016 17:10:38 +0000 (12:10 -0500)]
Remove "$that" from SessionManager

Also "function () use ( &$ref )" that was being done for similar
reasons.

Change-Id: If4ec263a9a9c02c1c6a414b26a0e77ba144437f1

8 years agoRemove unused imports from Session classes
Thiemo Mättig [Wed, 10 Feb 2016 17:06:48 +0000 (18:06 +0100)]
Remove unused imports from Session classes

Change-Id: Ia3cdd923728870f5eff0bd90fd2f6605047291c0

8 years agoStop doing $that = $this in includes/db
Ricordisamoa [Wed, 10 Feb 2016 17:07:30 +0000 (18:07 +0100)]
Stop doing $that = $this in includes/db

Closures support $this as of PHP 5.4

Also made DatabaseBase::indexName() protected

Change-Id: Iff31e7d9186832a855a953b923ac182f1c66ffa0

8 years agoMerge "Fix case of Html class in HtmlTest comments"
jenkins-bot [Wed, 10 Feb 2016 16:29:35 +0000 (16:29 +0000)]
Merge "Fix case of Html class in HtmlTest comments"

8 years agoMerge "resourceloader: Disable localStorage cache on FF, Opera"
jenkins-bot [Wed, 10 Feb 2016 15:59:18 +0000 (15:59 +0000)]
Merge "resourceloader: Disable localStorage cache on FF, Opera"

8 years agoApiMessage: Use a trait to avoid code duplication
Brad Jorsch [Wed, 10 Feb 2016 15:40:15 +0000 (10:40 -0500)]
ApiMessage: Use a trait to avoid code duplication

Change-Id: I19eb63bdc4c4cbd137f4d2101d37c81ce91aa6b3

8 years agoMerge "In Installer, set the context language early to avoid loading from User"
jenkins-bot [Wed, 10 Feb 2016 15:22:42 +0000 (15:22 +0000)]
Merge "In Installer, set the context language early to avoid loading from User"

8 years agoMerge "In Installer, set the user to an anon in RequestContext, not just wgUser"
jenkins-bot [Wed, 10 Feb 2016 15:13:41 +0000 (15:13 +0000)]
Merge "In Installer, set the user to an anon in RequestContext, not just wgUser"

8 years agoresourceloader: Disable localStorage cache on FF, Opera
Ori Livneh [Wed, 10 Feb 2016 08:25:41 +0000 (00:25 -0800)]
resourceloader: Disable localStorage cache on FF, Opera

Bug T66721 affects a minority of users on a minority of browsers. But for those
people, the effect is sufficiently severe to be considered a deal-breaker. I
regret that it has taken me this long to come around to recognizing that.

Bug: T66721
Change-Id: Iedde8a399c1eec81ed6307748048b3c1bdfe7adc

8 years agoIn Installer, set the context language early to avoid loading from User
Tim Starling [Wed, 10 Feb 2016 10:32:38 +0000 (21:32 +1100)]
In Installer, set the context language early to avoid loading from User

Set the context language early, even before the session is loaded, to
avoid attempting to call User::loadFromSession(). Also update the things
that set $wgLang to also set it in RequestContext.

Passing $wgUser through to the ParserOptions constructor isn't strictly
necessary right now, but it does at least show the intended data flow
and is more robust to future changes in the way the language is passed
through to ParserOptions.

Fixes bug T126177 independently of my other two patches.

Bug: T126177
Change-Id: I15eb9cdce7805382d96b6fc6ffb9b25855876417

8 years agoIn Installer, set the user to an anon in RequestContext, not just wgUser
Tim Starling [Wed, 10 Feb 2016 10:17:06 +0000 (21:17 +1100)]
In Installer, set the user to an anon in RequestContext, not just wgUser

This hack to prevent $wgUser being loaded was apparently not updated
when RequestContext was introduced.

Fixes T126177 independently of I13d8aa1453c

Bug: T126177
Change-Id: Iedceec3044352e433710d97d5c7c81fff1a6a3e5

8 years agoMerge "Stop doing $that = $this in Tests"
jenkins-bot [Wed, 10 Feb 2016 08:55:03 +0000 (08:55 +0000)]
Merge "Stop doing $that = $this in Tests"

8 years agoDrop FastStringSearch support from ReplacementArray
Max Semenik [Fri, 29 Jan 2016 01:49:38 +0000 (17:49 -0800)]
Drop FastStringSearch support from ReplacementArray

It's not needed after a PHP 5.5 switch

Change-Id: I989f39d59878039d8cc320af957a90982e48d08d

8 years agoMerge "Add support for Laki"
jenkins-bot [Wed, 10 Feb 2016 08:03:54 +0000 (08:03 +0000)]
Merge "Add support for Laki"

8 years agoAdd support for Laki
Siebrand Mazeland [Wed, 10 Feb 2016 07:54:58 +0000 (08:54 +0100)]
Add support for Laki

Change-Id: I46a65cb047546e0c6274d78dc342759e4c7f4171

8 years agoStop doing $that = $this in Tests
addshore [Thu, 4 Feb 2016 21:09:07 +0000 (22:09 +0100)]
Stop doing $that = $this in Tests

Closures support $this as of 5.4

Change-Id: Ibe73c789d093ef994b61bed23b4c76f7ef057a33

8 years agoMerge "Bump required PHP version to 5.5.9"
jenkins-bot [Wed, 10 Feb 2016 07:03:33 +0000 (07:03 +0000)]
Merge "Bump required PHP version to 5.5.9"

8 years agoBump required PHP version to 5.5.9
Chad Horohoe [Wed, 27 Jan 2016 22:44:25 +0000 (14:44 -0800)]
Bump required PHP version to 5.5.9

Result of RfC and extensive discussion. RfC approved
by Tim/ArchCom on 2016-01-27.

Bug: T75901
Depends-On: I00e2e7adf5202384fc92371b8d0551782c3c17cb
Change-Id: I68c5b5d60952418ff8300c163edfe2275571f41f

8 years agoAdd @since to ParserOptions::newFromAnon
Gergő Tisza [Wed, 10 Feb 2016 01:56:46 +0000 (17:56 -0800)]
Add @since to ParserOptions::newFromAnon

Change-Id: I0e70904fb908fa9ed5c3c6fc30df9d02c742e29e

8 years agoFix EventRelayerGroup constructor
Aaron Schulz [Wed, 10 Feb 2016 03:11:35 +0000 (19:11 -0800)]
Fix EventRelayerGroup constructor

Bug: T126371
Change-Id: Iaffb3854f1ab7b03ce24563054bd1ba5f55bbf2c

8 years agoMerge "build: Bump grunt-contrib-jshint from 0.11.3 to 0.12.0"
jenkins-bot [Tue, 9 Feb 2016 23:07:34 +0000 (23:07 +0000)]
Merge "build: Bump grunt-contrib-jshint from 0.11.3 to 0.12.0"

8 years agoMerge "build: Bump devDependencies to latest"
jenkins-bot [Tue, 9 Feb 2016 23:07:30 +0000 (23:07 +0000)]
Merge "build: Bump devDependencies to latest"

8 years agoMerge "resourceloader: Reduce module_deps write slams after deployments"
jenkins-bot [Tue, 9 Feb 2016 22:50:26 +0000 (22:50 +0000)]
Merge "resourceloader: Reduce module_deps write slams after deployments"

8 years agoMake CDN purges send EventRelayer events
Aaron Schulz [Tue, 29 Dec 2015 19:45:23 +0000 (11:45 -0800)]
Make CDN purges send EventRelayer events

* Also create EventRelayerGroup class and config

Bug: T97562
Change-Id: Id7c9b0deb0ffd21277572a8e6407f87be6931a4d

8 years agoUpdate OOjs UI to v0.15.3
James D. Forrester [Tue, 9 Feb 2016 21:34:30 +0000 (13:34 -0800)]
Update OOjs UI to v0.15.3

Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.15.3/History.md

Change-Id: Ic93f6620999bf10fcfdf4ef2d2a42cc9c7dfd98a

8 years agoFix case of Html class in HtmlTest comments
umherirrender [Tue, 9 Feb 2016 21:00:38 +0000 (22:00 +0100)]
Fix case of Html class in HtmlTest comments

Change-Id: I92eace17e643b3a40b38c077e9dcb3d60a7f5faf

8 years agoMerge "interwiki: Fix-up for I5a979f047031e"
jenkins-bot [Tue, 9 Feb 2016 20:31:25 +0000 (20:31 +0000)]
Merge "interwiki: Fix-up for I5a979f047031e"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 9 Feb 2016 20:23:52 +0000 (21:23 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I5b0dc4a9eb2589056913128578f28e6ea3eb614c

8 years agointerwiki: Fix-up for I5a979f047031e
Ori Livneh [Mon, 8 Feb 2016 23:23:05 +0000 (15:23 -0800)]
interwiki: Fix-up for I5a979f047031e

Make Interwiki::getAllPrefixesCached() work when $wgInterwikiCache is set to a
static array (rather than path to a CDB file).  Follows I5a979f047031e.

Bug: T122362
Change-Id: I003e055471747afdcc82440490456e03cc67cc1a

8 years agoMerge "mediawiki.Title: Fix typo "add" in documentation"
jenkins-bot [Tue, 9 Feb 2016 19:50:37 +0000 (19:50 +0000)]
Merge "mediawiki.Title: Fix typo "add" in documentation"

8 years agoRevert "Limit ip-all/subnet-all ping limts per wiki"
CSteipp [Tue, 9 Feb 2016 19:50:19 +0000 (19:50 +0000)]
Revert "Limit ip-all/subnet-all ping limts per wiki"

This reverts commit 461406e31864e75fcd1c2f5ac967cb7ba5e5a182.

My mistake, we've always used global keys for ip/subnet.

Change-Id: I8bc1bfdf61ae5c0988a913871a7292faed372141

8 years agoMerge "jsduck: Remove broken url from custom_tags.rb"
jenkins-bot [Tue, 9 Feb 2016 19:47:07 +0000 (19:47 +0000)]
Merge "jsduck: Remove broken url from custom_tags.rb"

8 years agojsduck: Remove broken url from custom_tags.rb
Timo Tijhof [Wed, 3 Feb 2016 22:38:26 +0000 (23:38 +0100)]
jsduck: Remove broken url from custom_tags.rb

This link no longer exists. It used to have a list of all built-in
tags which is now at https://github.com/senchalabs/jsduck/wiki#syntax.

Either way, that list isn't relevant to this file.

Change-Id: Idb072d0b5677a7031bc6ed08dc60425620df4b7d

8 years agoresourceloader: Introduce window.NORLQ
Alex Monk [Sat, 23 Jan 2016 00:15:56 +0000 (00:15 +0000)]
resourceloader: Introduce window.NORLQ

Bug: T123457
Change-Id: Ice6ebb95bfcb2050f4813705467942f95f7e720c

8 years agoMerge "Don't try to auto-create users when MW_NO_SESSION is defined"
jenkins-bot [Tue, 9 Feb 2016 16:15:04 +0000 (16:15 +0000)]
Merge "Don't try to auto-create users when MW_NO_SESSION is defined"

8 years agoMerge "Clarify and expand messages mentioning "loss of session data""
jenkins-bot [Tue, 9 Feb 2016 16:07:45 +0000 (16:07 +0000)]
Merge "Clarify and expand messages mentioning "loss of session data""

8 years agoMerge "Fix fatal error in updateSearchIndex.php script"
jenkins-bot [Tue, 9 Feb 2016 14:25:33 +0000 (14:25 +0000)]
Merge "Fix fatal error in updateSearchIndex.php script"

8 years agoFix fatal error in updateSearchIndex.php script
aude [Tue, 9 Feb 2016 13:24:28 +0000 (14:24 +0100)]
Fix fatal error in updateSearchIndex.php script

setDescription does not exist as a method, but
there is addDescription.

Change-Id: Ifeb89d7b59a21c3028350837924963134081cd36

8 years agoMerge "Limit ip-all/subnet-all ping limts per wiki"
jenkins-bot [Tue, 9 Feb 2016 09:48:28 +0000 (09:48 +0000)]
Merge "Limit ip-all/subnet-all ping limts per wiki"

8 years agoLimit ip-all/subnet-all ping limts per wiki
csteipp [Tue, 9 Feb 2016 01:44:06 +0000 (17:44 -0800)]
Limit ip-all/subnet-all ping limts per wiki

47973faa7c7d4832 used a static string for ip-all/subnet-all limits,
instead of generating a key unique to each wiki.

Change-Id: Ie8013dc959fdeba92ecd463550e3d98d83276004

8 years agoAmend name for Goan Konkani
This, that and the other [Tue, 9 Feb 2016 06:12:31 +0000 (17:12 +1100)]
Amend name for Goan Konkani

Bug: T126148
Change-Id: Iffcaca9ac42bf7c1761df1e8d82cc233c41c54dc

8 years agoMerge "Allow easy suppression of multiple deleted revs"
jenkins-bot [Tue, 9 Feb 2016 03:23:43 +0000 (03:23 +0000)]
Merge "Allow easy suppression of multiple deleted revs"

8 years agoAllow easy suppression of multiple deleted revs
Luke Faraone [Sun, 13 Dec 2015 20:50:17 +0000 (20:50 +0000)]
Allow easy suppression of multiple deleted revs

Add checkboxes to revisisons on Special:Undelete, with an accompanying button
to submit the form.

Handle the form submission and redirect to the appropriate
Special:RevisionDelete page.

Bug: T22189
Co-Authored-By: Rohan <rohan1395@yahoo.com>
Change-Id: I2a0a53c3b5ae2145472e4b5a3d3cf61bd3cf4f28

8 years agoAdd release notes and installer support for $wgAuthenticationTokenVersion
Brad Jorsch [Fri, 5 Feb 2016 18:47:51 +0000 (13:47 -0500)]
Add release notes and installer support for $wgAuthenticationTokenVersion

Change-Id: I092a0052b2ab50310cd8ca403d6b2f201b482d5b

8 years agoMerge "Convert page modification to using startAtomic()/endAtomic()"
jenkins-bot [Tue, 9 Feb 2016 01:06:15 +0000 (01:06 +0000)]
Merge "Convert page modification to using startAtomic()/endAtomic()"

8 years agoMerge "OutputPage: Don't get a ParserOptions for $wgUser before the end of Setup...
jenkins-bot [Tue, 9 Feb 2016 00:51:44 +0000 (00:51 +0000)]
Merge "OutputPage: Don't get a ParserOptions for $wgUser before the end of Setup.php"

8 years agoMerge "Move EditPage robot policy out into EditAction"
jenkins-bot [Tue, 9 Feb 2016 00:28:06 +0000 (00:28 +0000)]
Merge "Move EditPage robot policy out into EditAction"

8 years agoConvert page modification to using startAtomic()/endAtomic()
Aaron Schulz [Sun, 13 Dec 2015 12:18:56 +0000 (04:18 -0800)]
Convert page modification to using startAtomic()/endAtomic()

A few semantic changes result from this:
* If multiple pages are edited in a request, the updates happen
  in the same order relative to each other, but all in one second
  step instead of after each page edit.
* If the same page is edited twice in a request, the WikiPage hook
  argument will reflect the last request edit, not always the edit
  that fired the hook.

Bug: T120718
Change-Id: I9429f29e5a90f24e4d7af5797a80e63a9cc34146

8 years agoMerge "Implement action=mergehistory"
jenkins-bot [Mon, 8 Feb 2016 23:30:32 +0000 (23:30 +0000)]
Merge "Implement action=mergehistory"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 8 Feb 2016 20:58:30 +0000 (21:58 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I228c0b58c9b9df6849c3c70eb1a39e402f679bca

8 years agoUse stub threshold from ParserOptions when parsing
Brad Jorsch [Wed, 3 Feb 2016 18:30:54 +0000 (13:30 -0500)]
Use stub threshold from ParserOptions when parsing

Linker::linkAttribs() needs the stub threshold to determine the classes
in some cases. For the code path from Parser → LinkHolderArray → Linker,
we can pass down the correct threshold from ParserOptions instead of
pulling a potentially-different threshold from $wgUser.

Bug: T124367
Change-Id: I16b9d6c3044ae60d5a7fd340569c019ffc4b2a55

8 years agoOutputPage: Don't get a ParserOptions for $wgUser before the end of Setup.php
Brad Jorsch [Wed, 3 Feb 2016 20:18:52 +0000 (15:18 -0500)]
OutputPage: Don't get a ParserOptions for $wgUser before the end of Setup.php

Until Setup.php completes, we can't access the "current" user and
trying to do so logs a warning. So don't try.

Bug: T124367
Change-Id: I1acc82760c368a24448f3c90e268b24414e43a30

8 years agoMerge "Update session log messages"
jenkins-bot [Mon, 8 Feb 2016 16:02:45 +0000 (16:02 +0000)]
Merge "Update session log messages"

8 years agoMerge "Revert "TableSorter: Avoid FOUC and preserve styling in VisualEditor""
jenkins-bot [Mon, 8 Feb 2016 15:28:30 +0000 (15:28 +0000)]
Merge "Revert "TableSorter: Avoid FOUC and preserve styling in VisualEditor""

8 years agoMerge "Use class for toggle links on Special:Log"
jenkins-bot [Mon, 8 Feb 2016 13:24:34 +0000 (13:24 +0000)]
Merge "Use class for toggle links on Special:Log"

8 years agoRevert "TableSorter: Avoid FOUC and preserve styling in VisualEditor"
Bartosz Dziewoński [Mon, 8 Feb 2016 12:57:47 +0000 (12:57 +0000)]
Revert "TableSorter: Avoid FOUC and preserve styling in VisualEditor"

That was, unfortunately, way too optimistic. The logic for
choosing header cells that are used for sorting is a lot more
complicated than current CSS selectors can express.

This reverts commit 9e363d0e8a12f4fc205de08958622d6e8e250c81.

Bug: T126007
Change-Id: I7c08e06a4f61d69b6858958218d9a6233aee18de

8 years agoMerge "Allow callbacks to be passed to $wgContentHandlers"
jenkins-bot [Mon, 8 Feb 2016 09:11:21 +0000 (09:11 +0000)]
Merge "Allow callbacks to be passed to $wgContentHandlers"

8 years agoMerge "Output PHP version before running PHPUnit tests"
jenkins-bot [Mon, 8 Feb 2016 02:09:34 +0000 (02:09 +0000)]
Merge "Output PHP version before running PHPUnit tests"

8 years agoOutput PHP version before running PHPUnit tests
Kunal Mehta [Mon, 8 Feb 2016 01:24:52 +0000 (17:24 -0800)]
Output PHP version before running PHPUnit tests

For sanity checking CI changes, as well as to match the PHPUnit
version output.

Change-Id: Ib807f8650992adada97226cd96282484392f71e8

8 years agoMerge "Introduce User::INVALID_TOKEN"
jenkins-bot [Mon, 8 Feb 2016 00:55:04 +0000 (00:55 +0000)]
Merge "Introduce User::INVALID_TOKEN"

8 years agoMerge "Use semver for wgVersion alpha versions"
jenkins-bot [Mon, 8 Feb 2016 00:51:05 +0000 (00:51 +0000)]
Merge "Use semver for wgVersion alpha versions"

8 years agoMerge "Remove duplicate array keys from tests"
jenkins-bot [Mon, 8 Feb 2016 00:51:01 +0000 (00:51 +0000)]
Merge "Remove duplicate array keys from tests"

8 years agoMerge "Add $wgVersion to MediaWiki\Logger\Monolog\WikiProcessor"
jenkins-bot [Sun, 7 Feb 2016 23:13:07 +0000 (23:13 +0000)]
Merge "Add $wgVersion to MediaWiki\Logger\Monolog\WikiProcessor"

8 years agoDon't try to auto-create users when MW_NO_SESSION is defined
Brad Jorsch [Sun, 7 Feb 2016 22:46:34 +0000 (17:46 -0500)]
Don't try to auto-create users when MW_NO_SESSION is defined

Bug: T126177
Change-Id: Ia62ec77cd2cc177d81923a96171498dbc8c0ed50

8 years agoAdd $wgVersion to MediaWiki\Logger\Monolog\WikiProcessor
Bryan Davis [Sun, 7 Feb 2016 21:04:55 +0000 (14:04 -0700)]
Add $wgVersion to MediaWiki\Logger\Monolog\WikiProcessor

Add a 'mwversion' value to log events processed by WikiProcessor to help
with classifying log events emitted by a wiki farm running mixed
versions of MediaWiki.

Bug: T125707
Change-Id: I5f5dfd051ebf251bec0d6e6a83a15e81f59540f3

8 years agoRemove duplicate array keys from tests
Reedy [Sun, 7 Feb 2016 21:22:53 +0000 (21:22 +0000)]
Remove duplicate array keys from tests

Change-Id: I437b87151be6589a8d5c984b90cd249c2d0ecd3c

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 7 Feb 2016 20:56:26 +0000 (21:56 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib6ae0a764d9e8f7e4e49c66bf79aa55a6b1d234e

8 years agobuild: Bump grunt-contrib-jshint from 0.11.3 to 0.12.0
James D. Forrester [Sun, 7 Feb 2016 02:06:57 +0000 (18:06 -0800)]
build: Bump grunt-contrib-jshint from 0.11.3 to 0.12.0

Taking the opportunity to modernise our .jshintrc file, I have made the
following changes there and adjusted the repo to pass:

* Replaced the deprecated `"es3": true` with `"esversion": 3`; nil change.
* Adjusted `"latedef": true` to `"latedef": "nofunc"`, a new setting for this
  option that lets us retain previous behaviour. One call needed to be adjusted
  for the update with this change; without it, several dozen were needed.
* Added `"futurehostile": true`, to make bumping `esversion` easier in future.

I have reviewed the rest of the options and chosen not to apply them:
* No need to over-ride the runtime option `maxerr`.
* No need to add the additional 'enforcing' options: `forin`, `nocomma`,
  `nonbsp`, `notypeof`, `predef`, `shadow`, `singleGroups`, `varstmt`.
* No need to add the additional 'relaxing' options, as ideally we should use
  none: `asi`, `boss`, `debug`, `elision`, `eqnull`, `evil`, `expr`,
  `lastsemic`, `loopfunc`, `moz`, `noyield`, `plusplus`, `proto`, `scripturl`,
  `supernew`, `validthis`, `withstmt`
* Definitely no need to add any of the deprecated coding style-related items:
  `camelcase`, `curly`, `immed`, `indent`, `laxcomma`, `maxlen`,
  `maxcomplexity`, `maxdepth`, `maxparams`, `maxstatements`, `newcap`,
  `noempty`, `quotmark`, `sub`

Note that we retain two deprecated options, `laxbreak` and `multistr` which are
set to be removed in the next major version of jshint but are as-yet required
for the repo so that it passes.

Change-Id: I2a780f655010f2231ab2ab93c40b34943828b4df

8 years agobuild: Bump devDependencies to latest
James D. Forrester [Sun, 7 Feb 2016 01:45:42 +0000 (17:45 -0800)]
build: Bump devDependencies to latest

* grunt-contrib-copy: 0.8.1 -> 0.8.2
* grunt-jscs: 2.6.0 -> 2.7.0
* karma-qunit: 0.1.5 -> 0.1.9

Leaving grunt-contrib-jshint for a follow-up patch.

Avoiding upgrading qunitjs again due to incompatibility of recent versions.

Change-Id: Ie4d2f63c3ec247f1bad26ca5d954362210394618

8 years agoMove EditPage robot policy out into EditAction
Alex Monk [Fri, 5 Feb 2016 02:17:43 +0000 (02:17 +0000)]
Move EditPage robot policy out into EditAction

So that it's default even when CustomEditor is used

Bug: T126145
Change-Id: If49d1dc39fb6ad9a2a0fa507ea9a0ccdc1088c59

8 years agoUpdate session log messages
Bryan Davis [Tue, 2 Feb 2016 16:37:27 +0000 (09:37 -0700)]
Update session log messages

* Use PSR-3 templates and context where applicable
* Add log coverage for exceptional events

Bug: T125452
Change-Id: I8f96fa1c5766c739a21219abcae2dbb76de53e2a

8 years agoExpand documentation of User::isSafeToLoad
Gergő Tisza [Sat, 6 Feb 2016 21:04:34 +0000 (13:04 -0800)]
Expand documentation of User::isSafeToLoad

Change-Id: I7f018b7f7219e7a17a3059b3ec9cbdf1c2c1e043

8 years agoUse class for toggle links on Special:Log
umherirrender [Sat, 6 Feb 2016 21:01:08 +0000 (22:01 +0100)]
Use class for toggle links on Special:Log

The toogle links All, None, Invert on Special:Log are shown at top and
at bottom, but using the same id, which make the page invalid and the
second link not working. Change to class.

Follow up: I92141a7079fc7fcd7152ef418d82f4f7969b163b
Change-Id: I1107b320efe5d3b63ea091ea986e35158d24c098

8 years agoUpdate oyejorge/less.php to 1.7.0.10
Paladox [Sat, 6 Feb 2016 18:14:16 +0000 (18:14 +0000)]
Update oyejorge/less.php to 1.7.0.10

Depends-On: Ifeec0870df1e0504be795dfb32be5ecd795325d5

Change-Id: Ibf17232bb51563360ff47b42d4c0f9cb0d5f8b18

8 years agoUse semver for wgVersion alpha versions
Florian [Sat, 6 Feb 2016 17:07:08 +0000 (18:07 +0100)]
Use semver for wgVersion alpha versions

Currently, the "alpha version" of MediaWiki is the only version, that doesn't
follow semantic versioning (1.27alpha), wmf branches are named according to the
sember convention (e.g. 1.27.0-wmf.1) and releases, too (e.g. 1.26.0). Change the
alpha version naming to follow semver, too:

1.27alpha -> 1.27.0-alpha

Change-Id: I026825c688e2eaed104ed2d0ec206b5a897a3527

8 years agoImplement action=mergehistory
Geoffrey Mon [Wed, 30 Dec 2015 04:53:34 +0000 (23:53 -0500)]
Implement action=mergehistory

* New class ApiMergeHistory handles action=mergehistory
* Merge History functionality moved from SpecialMergeHistory to
  MergeHistory
* SpecialMergeHistory now uses MergeHistory for actual merging
* Unit tests and i18n messages for above

Bug: T69742
Change-Id: Ic5078307dae78a2b3687e34a5d0a584988d483a1

8 years agoSpecial:Version: Use addModuleStyles to load mediawiki.special.version
Glaisher [Sat, 6 Feb 2016 12:33:43 +0000 (17:33 +0500)]
Special:Version: Use addModuleStyles to load mediawiki.special.version

Currently, there is a brief delay before the stylesheet is loaded so
use addModuleStyles as this is a stylesheet only module.

Change-Id: I6adfeae88dddeab427928ef800152a4e1353cbe5

8 years agoAllow callbacks to be passed to $wgContentHandlers
Bene [Fri, 5 Feb 2016 13:40:39 +0000 (14:40 +0100)]
Allow callbacks to be passed to $wgContentHandlers

Change-Id: Icf980313a6e7fcc83f5183c450b0a824353596b8

8 years agoClarify and expand messages mentioning "loss of session data"
Bartosz Dziewoński [Mon, 1 Feb 2016 18:07:03 +0000 (19:07 +0100)]
Clarify and expand messages mentioning "loss of session data"

Saying "loss of session data" in error messages is meaningless to the
user. It basically means "you might have been logged out", and is
sometimes normal (as login sessions are not stored forever).

MediaWiki gives this error when it isn't sure if it's still the same
user who started the edit, instead of just re-creating the session and
saving the page, which could potentially expose user's IP address.

Expanded 'session_fail_preview' message with this information, changed
which parts of it we bold, and updated three other messages for
consistency. Updated their documentation to refer for each other, too
(https://translatewiki.net/wiki/Template:Identical/Loss_of_session_data).

Bug: T125334
Change-Id: Ia99f39fac506855804ce5c40b0df3381d2782e48

8 years agoMerge "Add $wgRateLimits types ip-all and subnet-all"
jenkins-bot [Fri, 5 Feb 2016 20:52:05 +0000 (20:52 +0000)]
Merge "Add $wgRateLimits types ip-all and subnet-all"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 5 Feb 2016 20:28:39 +0000 (21:28 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I833de3a05f11dedaead4ace0757e37abc5d34351

8 years agoMerge "Add Special:UserLogin/signup to search suggestions"
jenkins-bot [Fri, 5 Feb 2016 16:46:30 +0000 (16:46 +0000)]
Merge "Add Special:UserLogin/signup to search suggestions"

8 years agoAdd Special:UserLogin/signup to search suggestions
Alex Monk [Fri, 5 Feb 2016 15:15:23 +0000 (15:15 +0000)]
Add Special:UserLogin/signup to search suggestions

Change-Id: I8aa1c7526f5c8d4c80b2cc649b39a30c1da3946a

8 years agoMerge "mediawiki.api.parse: Use formatversion=2 for API requests"
jenkins-bot [Fri, 5 Feb 2016 11:44:16 +0000 (11:44 +0000)]
Merge "mediawiki.api.parse: Use formatversion=2 for API requests"