lhc/web/wiklou.git
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 "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 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 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 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"

8 years agoMerge "mediawiki.userSuggest: Use formatversion=2 for API request"
jenkins-bot [Fri, 5 Feb 2016 11:28:18 +0000 (11:28 +0000)]
Merge "mediawiki.userSuggest: Use formatversion=2 for API request"

8 years agoMerge "mw.loader: Guard localStorage access with try/catch in mw.store.clear()"
jenkins-bot [Fri, 5 Feb 2016 00:04:30 +0000 (00:04 +0000)]
Merge "mw.loader: Guard localStorage access with try/catch in mw.store.clear()"

8 years agomw.loader: Guard localStorage access with try/catch in mw.store.clear()
Bryan Davis [Thu, 4 Feb 2016 16:19:25 +0000 (09:19 -0700)]
mw.loader: Guard localStorage access with try/catch in mw.store.clear()

We use try/catch appropriately in other places but it was missing
in mw.store.clear().

If the user agent has localStorage disabled an exception will be thrown
for any operation that touches the object.

Change-Id: Idcd0e4c8ba9b0843b2ddcad0ae1781e4915e04fe

8 years agoMerge "mediawiki.jqueryMsg.test: Call async() before each async test step"
jenkins-bot [Thu, 4 Feb 2016 23:06:11 +0000 (23:06 +0000)]
Merge "mediawiki.jqueryMsg.test: Call async() before each async test step"

8 years agoMerge "Add logic for "tags" in ApiBase"
jenkins-bot [Thu, 4 Feb 2016 22:01:33 +0000 (22:01 +0000)]
Merge "Add logic for "tags" in ApiBase"

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

Change-Id: Ic35ee8090408696e1b609bae1289aa0036462333

8 years agomediawiki.Title: Fix typo "add" in documentation
Timo Tijhof [Thu, 4 Feb 2016 20:04:23 +0000 (21:04 +0100)]
mediawiki.Title: Fix typo "add" in documentation

Follows-up 3d14628237.

* Put @class after the description for consistency with other
  classes and methods.
* Remove jscs:disable rule which was there for the illegal
  @constructor use (descriptions must go before a tag, not after).
  However JSDuck doesn't support descriptions before @constructor.
  It supports it with all other tags, however.

  It turns out, that @constructor doesn't support this because
  it is deprecated and predates that feature in JSDuck. Upstream
  documentation encourages authors to use @method instead.

Change-Id: Iba9fa5ae1fc8ece9ddff4aef8a3b4b59768fcaf0

8 years agoMerge "ForeignAPIRepo: Remove incorrect 'thumbnail' from $imageInfoProps"
jenkins-bot [Thu, 4 Feb 2016 20:50:07 +0000 (20:50 +0000)]
Merge "ForeignAPIRepo: Remove incorrect 'thumbnail' from $imageInfoProps"

8 years agoAdd logic for "tags" in ApiBase
victorbarbu [Wed, 20 Jan 2016 09:51:01 +0000 (11:51 +0200)]
Add logic for "tags" in ApiBase

Bug: T97720
Change-Id: I275c516b4744e243333ec0818d2be1e5508e54a3

8 years agomediawiki.jqueryMsg.test: Call async() before each async test step
Thiemo Mättig [Thu, 4 Feb 2016 17:52:58 +0000 (18:52 +0100)]
mediawiki.jqueryMsg.test: Call async() before each async test step

Previously, this code ran into the problem that the timeout for dozens of
API requests was hit and the test failed.
The timeout now starts within each individual step.

Bug: T125484
Change-Id: Ia7874ccafadf93986278a241d9d308be0bc99493

8 years agoMerge "Page is an interface not a class"
jenkins-bot [Thu, 4 Feb 2016 19:24:54 +0000 (19:24 +0000)]
Merge "Page is an interface not a class"

8 years agoMerge "Pass function to Database::selectField in SpecialActiveusers.php"
jenkins-bot [Thu, 4 Feb 2016 19:24:50 +0000 (19:24 +0000)]
Merge "Pass function to Database::selectField in SpecialActiveusers.php"

8 years agoMerge "qunit: Increase individual test timeout to 60 seconds"
jenkins-bot [Thu, 4 Feb 2016 18:15:55 +0000 (18:15 +0000)]
Merge "qunit: Increase individual test timeout to 60 seconds"

8 years agoqunit: Increase individual test timeout to 60 seconds
Jan Zerebecki [Thu, 4 Feb 2016 10:35:02 +0000 (11:35 +0100)]
qunit: Increase individual test timeout to 60 seconds

Bug: T125484
Change-Id: If4147d678fdef168d79bc2b4d0c606b8c82dc6af

8 years agoForeignAPIRepo: Remove incorrect 'thumbnail' from $imageInfoProps
Bartosz Dziewoński [Thu, 4 Feb 2016 17:14:05 +0000 (18:14 +0100)]
ForeignAPIRepo: Remove incorrect 'thumbnail' from $imageInfoProps

'thumbnail' doesn't seem to have ever been a valid 'iiprop' value.
It's currently causing harmless warnings on every InstantCommons request.
Added in 8d1fa96578e8570a08a0cb5f7e2945f09819fbfb for unknown reasons.

Change-Id: I6286ce3ac07207c0dcfc1171084cb358b3fcecda

8 years agoMerge "Avoid unstubbing $wgUser before the end of Setup.php in User::getBlockedStatus()"
jenkins-bot [Thu, 4 Feb 2016 16:42:07 +0000 (16:42 +0000)]
Merge "Avoid unstubbing $wgUser before the end of Setup.php in User::getBlockedStatus()"

8 years agoMerge "When serializing Message, don't try to unstub StubUserLang"
jenkins-bot [Thu, 4 Feb 2016 16:29:28 +0000 (16:29 +0000)]
Merge "When serializing Message, don't try to unstub StubUserLang"

8 years agoMerge "Disable automatic cache headers associated with starting a session"
jenkins-bot [Thu, 4 Feb 2016 16:29:20 +0000 (16:29 +0000)]
Merge "Disable automatic cache headers associated with starting a session"

8 years agoBitmapHandler: Implement validateParam()
Bartosz Dziewoński [Thu, 4 Feb 2016 16:01:44 +0000 (17:01 +0100)]
BitmapHandler: Implement validateParam()

Follow-up to 695a93dd3353678ae4a9038528a33a1ac03eba38.

Bug: T125804
Change-Id: Ifde40bb5d7c60dd19727f5e47041a6e676f7e3c8

8 years agoMerge "[debug] Remove BC code from AvroFormatter"
jenkins-bot [Thu, 4 Feb 2016 13:17:31 +0000 (13:17 +0000)]
Merge "[debug] Remove BC code from AvroFormatter"

8 years agoMerge "Split ImagePage.php into separate classes"
jenkins-bot [Thu, 4 Feb 2016 11:48:37 +0000 (11:48 +0000)]
Merge "Split ImagePage.php into separate classes"

8 years agoSplit ImagePage.php into separate classes
Thomas Arrow [Wed, 3 Feb 2016 12:26:01 +0000 (12:26 +0000)]
Split ImagePage.php into separate classes

Change-Id: Id2ca94c50b75d24da4d02fe82747a7ce7edccd9f

8 years agoMerge "Add User::isSafeToLoad() and ParserOptions::newFromAnon()"
jenkins-bot [Thu, 4 Feb 2016 06:08:07 +0000 (06:08 +0000)]
Merge "Add User::isSafeToLoad() and ParserOptions::newFromAnon()"

8 years agoMerge "Include completion search into SearchEngine"
jenkins-bot [Thu, 4 Feb 2016 02:09:46 +0000 (02:09 +0000)]
Merge "Include completion search into SearchEngine"

8 years agoMerge "Change bug ID to Phabricator task ID"
jenkins-bot [Thu, 4 Feb 2016 01:28:01 +0000 (01:28 +0000)]
Merge "Change bug ID to Phabricator task ID"

8 years agoChange bug ID to Phabricator task ID
wctaiwan [Thu, 4 Feb 2016 01:13:10 +0000 (20:13 -0500)]
Change bug ID to Phabricator task ID

Change-Id: I8e1fc6ed9434a331eb7c66273305576eebed3125

8 years agoMerge "Revert "Preprocessor: Don't allow unclosed extension tags (matching until...
Bartosz Dziewoński [Thu, 4 Feb 2016 01:10:58 +0000 (01:10 +0000)]
Merge "Revert "Preprocessor: Don't allow unclosed extension tags (matching until end of input)""

8 years agoRevert "Preprocessor: Don't allow unclosed extension tags (matching until end of...
Legoktm [Thu, 4 Feb 2016 00:38:35 +0000 (00:38 +0000)]
Revert "Preprocessor: Don't allow unclosed extension tags (matching until end of input)"

This reverts commit f51d0d9a819f8f1c181350ced2f015ce97985fcc.

Breaks templates with non-closed </noinclude> tags, which
were previously acceptable.

Bug: T125754
Change-Id: I8bafb15eefac4e1d3e727c1c84782636d8b82c2b

8 years agoInclude completion search into SearchEngine
Stanislav Malyshev [Tue, 26 Jan 2016 21:18:27 +0000 (13:18 -0800)]
Include completion search into SearchEngine

By default it still uses PrefixSearch and supports PrefixSearchBackend
but it can be deprecated and phased out and SearchEngine extensions used
instead.

New APIs:
- SearchEngine
public function defaultPrefixSearch( $search );
public function completionSearch( $search );
public function completionSearchWithVariants( $search );

Search engines should override:
protected function completionSearchBackend( $search );

Bug: T121430
Change-Id: Ie78649591dff94d21b72fad8e4e5eab010a461df

8 years agoAvoid unstubbing $wgUser before the end of Setup.php in User::getBlockedStatus()
Brad Jorsch [Wed, 3 Feb 2016 17:33:25 +0000 (12:33 -0500)]
Avoid unstubbing $wgUser before the end of Setup.php in User::getBlockedStatus()

Autocreation needs to check if the current IP is blocked from account
creation.

There are two ways we could go here: treat $wgUser as logged-out, or
assume it will eventually be the user name specified by the session.
This patch chooses the former, by the logic that at this early point in
the setup process we don't have a logged-in user determined yet so no
username can really be considered to match the logged-in user.

Bug: T124367
Change-Id: I631bec85291b57f07c378cf6554a8f06cf3fb00c

8 years agoAdd User::isSafeToLoad() and ParserOptions::newFromAnon()
Brad Jorsch [Wed, 3 Feb 2016 20:41:00 +0000 (15:41 -0500)]
Add User::isSafeToLoad() and ParserOptions::newFromAnon()

Useful for avoiding "User::loadFromSession called before the end of
Setup.php".

Bug: T124367
Change-Id: I0b018a623fc833ca95d249ee21667a8f5690d50e