lhc/web/wiklou.git
5 years agoDrop index oi_name_archive_name on table oldimage
Paladox [Sat, 8 Oct 2016 15:08:29 +0000 (16:08 +0100)]
Drop index oi_name_archive_name on table oldimage

Bug: T145635
Change-Id: I7d1c534ec69bfac7d63514993d3f8429a6121592

5 years agoMerge "Add parameter to API modules to apply change tags to log entries"
jenkins-bot [Fri, 13 Jan 2017 17:42:04 +0000 (17:42 +0000)]
Merge "Add parameter to API modules to apply change tags to log entries"

5 years agoWhat's %MediaWiki? Remove random % from comment
Chad Horohoe [Fri, 13 Jan 2017 04:44:32 +0000 (20:44 -0800)]
What's %MediaWiki? Remove random % from comment

Change-Id: I5e13a7b408885c390bb0b7b3cc1f585d43e327b2

5 years agoRemove wiki.phtml
Reedy [Tue, 16 Feb 2016 13:38:50 +0000 (13:38 +0000)]
Remove wiki.phtml

Change-Id: Ic2d422e16e3db236cf26731eafcec18f29cbcfb0

5 years agoMerge "Remove check for MW_NO_SETUP"
jenkins-bot [Fri, 13 Jan 2017 01:29:16 +0000 (01:29 +0000)]
Merge "Remove check for MW_NO_SETUP"

5 years agoMerge "Move libs/time/defines.php inclusion from GlobalFunctions to Defines.php"
jenkins-bot [Fri, 13 Jan 2017 01:26:35 +0000 (01:26 +0000)]
Merge "Move libs/time/defines.php inclusion from GlobalFunctions to Defines.php"

5 years agoMerge "Remove fully initialized debug message, dubiously useful"
jenkins-bot [Fri, 13 Jan 2017 01:26:31 +0000 (01:26 +0000)]
Merge "Remove fully initialized debug message, dubiously useful"

5 years agoMove libs/time/defines.php inclusion from GlobalFunctions to Defines.php
Timo Tijhof [Fri, 13 Jan 2017 00:46:25 +0000 (16:46 -0800)]
Move libs/time/defines.php inclusion from GlobalFunctions to Defines.php

* Verified none of these constants depend on each other.
* Move them to the top of Defines.php for consistency.

Change-Id: I19c77e706d69bff513e4abafd0300207de0dbb1d

5 years agoRemove check for MW_NO_SETUP
Chad Horohoe [Fri, 13 Jan 2017 01:01:14 +0000 (17:01 -0800)]
Remove check for MW_NO_SETUP

This protection is in place for a single extension, Maintenance.
Said extension is probably broken anyway and has been for quite
some time.

Plus, it doesn't even really work like it would intend, the extension
uses special pages and this is a require_once, so a subsequent
request to WebStart.php (which isn't even called by extensions)
wouldn't re-require it.

tldr: This is pointless

Change-Id: I22e7418d2b46c00d4009c370c24ac4b8bc43190a

5 years agoMerge "Remove random check (and possible inclusion) of Autoloader from Setup"
jenkins-bot [Fri, 13 Jan 2017 00:59:02 +0000 (00:59 +0000)]
Merge "Remove random check (and possible inclusion) of Autoloader from Setup"

5 years agoRemove fully initialized debug message, dubiously useful
Chad Horohoe [Fri, 13 Jan 2017 00:55:43 +0000 (16:55 -0800)]
Remove fully initialized debug message, dubiously useful

Change-Id: I406e44a3751788c4282f5cb22377d258f06671c3

5 years agoRemove random check (and possible inclusion) of Autoloader from Setup
Chad Horohoe [Fri, 13 Jan 2017 00:41:56 +0000 (16:41 -0800)]
Remove random check (and possible inclusion) of Autoloader from Setup

This is not even possible. You would've fatal'd 800 ways to Sunday
before you get remotely this far.

Change-Id: Iaf469e56394db93215af1aa54dc96876d5079ea9

5 years agoAdd parameter to API modules to apply change tags to log entries
This, that and the other [Thu, 12 Jan 2017 07:14:55 +0000 (18:14 +1100)]
Add parameter to API modules to apply change tags to log entries

Adds support for tagging log entries for the block, import,
managetags, and move API modules, using a 'tags' parameter.

Bug: T97720
Change-Id: I9d75d2cece317a7704c4bc6d734ad3cafe24544e

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 12 Jan 2017 22:16:56 +0000 (23:16 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I1b63f27592e62509f88b38ed8ab282208cc59f46

5 years agobuild: Upgrade karma-chrome-launcher to support Chromium on Mac/Windows
Antoine Musso [Tue, 20 Dec 2016 15:38:09 +0000 (16:38 +0100)]
build: Upgrade karma-chrome-launcher to support Chromium on Mac/Windows

Before karma-chrome-launcher 2.0.0, Chromium was only detected on Linux
and as part of the "Chrome" setting. "Chromium" is now recognised as a
separate browser and is detected on Mac and Windows as well.

https://github.com/karma-runner/karma-chrome-launcher/issues/45

Add a grunt target for Chromium so users may run the following to use
Chromium instead of Chrome:

    grunt karma:chromium

Since we keep the default of "Chrome", we'll need an override for CI
since we install Chromium there instead of Chrome.

Depends on Ie9f906f8 being merged and Nodepool images updated.

Bug: T153756
Change-Id: I6ba0d971e7e8c3022d2ab6268ae637688189d768

5 years agoFix two typos
datguy [Thu, 12 Jan 2017 18:07:48 +0000 (19:07 +0100)]
Fix two typos

Changed evaluting > evaluating and catgeories > categories.

Bug: T155135
Change-Id: Ieeaaf76b2fb762810a85ec10e82381f70067884e

5 years agoMerge "Arrange Special:Version/credits into columns and remove space at top"
jenkins-bot [Thu, 12 Jan 2017 05:16:09 +0000 (05:16 +0000)]
Merge "Arrange Special:Version/credits into columns and remove space at top"

5 years agoMerge "Remove cols and rows preferences"
jenkins-bot [Thu, 12 Jan 2017 05:04:35 +0000 (05:04 +0000)]
Merge "Remove cols and rows preferences"

5 years agoArrange Special:Version/credits into columns and remove space at top
This, that and the other [Thu, 12 Jan 2017 03:33:59 +0000 (14:33 +1100)]
Arrange Special:Version/credits into columns and remove space at top

Make the long list of names more manageable and readable.

Change-Id: I3bb5da73ecf0c46b77a675324dcd62c9c4ea60da

5 years agoMerge "mw.Api: Deprecate mw.Api.errors, mw.Api.warnings"
jenkins-bot [Wed, 11 Jan 2017 23:35:37 +0000 (23:35 +0000)]
Merge "mw.Api: Deprecate mw.Api.errors, mw.Api.warnings"

5 years agoMerge "Fix inconsistent capitalisation for link labels in EditWatchlist"
jenkins-bot [Wed, 11 Jan 2017 23:33:23 +0000 (23:33 +0000)]
Merge "Fix inconsistent capitalisation for link labels in EditWatchlist"

5 years agoMerge "phan: Don't hardcode 'php7.0' binary"
jenkins-bot [Wed, 11 Jan 2017 22:41:38 +0000 (22:41 +0000)]
Merge "phan: Don't hardcode 'php7.0' binary"

5 years agophan: Don't hardcode 'php7.0' binary
addshore [Wed, 11 Jan 2017 22:22:07 +0000 (14:22 -0800)]
phan: Don't hardcode 'php7.0' binary

This isn't available on all systems, e.g. Fedora just uses "php". People
with multiple versions of PHP installed can use an alternatives system
or something to make sure PHP 7 is used.

Change-Id: I03ef7c2d4223ade32f7a89c3a88706ae8c6e8156

5 years agomw.Api: Deprecate mw.Api.errors, mw.Api.warnings
Bartosz Dziewoński [Wed, 11 Jan 2017 21:52:58 +0000 (13:52 -0800)]
mw.Api: Deprecate mw.Api.errors, mw.Api.warnings

Change-Id: I90f1ca1f26d647f34059fec342778568f7a5ff71

5 years agoMerge "Add Backlinks to Special:(Change|Remove)Credentials"
jenkins-bot [Wed, 11 Jan 2017 21:40:56 +0000 (21:40 +0000)]
Merge "Add Backlinks to Special:(Change|Remove)Credentials"

5 years agoMerge "Localisation updates from https://translatewiki.net."
L10n-bot [Wed, 11 Jan 2017 21:32:25 +0000 (21:32 +0000)]
Merge "Localisation updates from https://translatewiki.net."

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 11 Jan 2017 21:19:13 +0000 (22:19 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ic632fe7485a41b620a6df51ae7b7922b8969f20c

5 years agoApiSandbox: Honor ApiBase::PARAM_ALLOW_DUPLICATES flag
Brad Jorsch [Wed, 11 Jan 2017 20:33:26 +0000 (12:33 -0800)]
ApiSandbox: Honor ApiBase::PARAM_ALLOW_DUPLICATES flag

Requires I1a94f8cd5 to function, but shouldn't cause any problems
without it.

Bug: T155121
Change-Id: I71bcf91b860461a4c9dade2a6ec70ee2a5ea29e1

5 years agoMerge "HTMLDateTimeField: Remove hacks for HTML5 form validation attributes"
jenkins-bot [Wed, 11 Jan 2017 20:22:58 +0000 (20:22 +0000)]
Merge "HTMLDateTimeField: Remove hacks for HTML5 form validation attributes"

5 years agoMerge "Html: Unblacklist HTML5 form validation attributes"
jenkins-bot [Wed, 11 Jan 2017 20:22:53 +0000 (20:22 +0000)]
Merge "Html: Unblacklist HTML5 form validation attributes"

5 years agoMerge "ApiResult: Add ApiResult::formatExpiry()"
jenkins-bot [Wed, 11 Jan 2017 20:15:28 +0000 (20:15 +0000)]
Merge "ApiResult: Add ApiResult::formatExpiry()"

5 years agoAdd Backlinks to Special:(Change|Remove)Credentials
Florian [Sat, 4 Jun 2016 22:48:38 +0000 (00:48 +0200)]
Add Backlinks to Special:(Change|Remove)Credentials

If an user wants to change or remove more then one set of credentials, he has
to know that he has to remove the parameters from the special pages in the url
bar of the browser or has to click through the workflow, which he used to view
the special page for the first change/remove.

This change adds a backlink to Special:(Change|Remove)Credentials when there was
a success of the change or remove of a credential. This link helps the user to find
back to the special page to change or remove a second set of credentials, if he wants.

Change-Id: Icd459518b258b7e717ca113829add6597eb6e7b8

5 years agoMerge "MysqlInstaller: Restore missing function"
jenkins-bot [Wed, 11 Jan 2017 19:19:52 +0000 (19:19 +0000)]
Merge "MysqlInstaller: Restore missing function"

5 years agoApiResult: Add ApiResult::formatExpiry()
Brad Jorsch [Wed, 11 Jan 2017 19:04:41 +0000 (11:04 -0800)]
ApiResult: Add ApiResult::formatExpiry()

This allows for removing $wgContLang from many API modules where it was
only used to call $wgContLang->formatExpiry() in a way in which the
results don't actually depend on the language.

Change-Id: Ib0f25f288b9b87d2e4131297c552e5971696db87

5 years agoMerge "HTMLForm: Suppress HTML5 form validation for non-JS users when needed"
jenkins-bot [Wed, 11 Jan 2017 19:03:17 +0000 (19:03 +0000)]
Merge "HTMLForm: Suppress HTML5 form validation for non-JS users when needed"

5 years agoMerge "SpecialPageLanguage: Redirect to redirect by adding redirect=no"
jenkins-bot [Wed, 11 Jan 2017 18:57:20 +0000 (18:57 +0000)]
Merge "SpecialPageLanguage: Redirect to redirect by adding redirect=no"

5 years agoMerge "Remove unused imports from test classes"
jenkins-bot [Wed, 11 Jan 2017 18:54:06 +0000 (18:54 +0000)]
Merge "Remove unused imports from test classes"

5 years agoMerge "Improved parsing in reason suggests"
jenkins-bot [Wed, 11 Jan 2017 18:49:05 +0000 (18:49 +0000)]
Merge "Improved parsing in reason suggests"

5 years agoMysqlInstaller: Restore missing function
Bartosz Dziewoński [Wed, 11 Jan 2017 18:23:00 +0000 (10:23 -0800)]
MysqlInstaller: Restore missing function

Copied from rSVN45497.

I'm not sure how to reproduce the circumstances in which this code gets
called, so I didn't test it. But what we did before was clearly wrong.

Bug: T154670
Change-Id: Id9b0282e7e65543999c9737950f5073ba2e81962

5 years agoMerge "Allow to define exceptions for Special:UncategorizedCategories on-wiki"
jenkins-bot [Wed, 11 Jan 2017 18:06:05 +0000 (18:06 +0000)]
Merge "Allow to define exceptions for Special:UncategorizedCategories on-wiki"

5 years agoImproved parsing in reason suggests
rlot [Wed, 11 Jan 2017 16:47:26 +0000 (17:47 +0100)]
Improved parsing in reason suggests

Bug: T155086
Change-Id: I3a3167b7bfd9b5921df1cf3e4a3cf3e1da4ca001

5 years agoAllow to define exceptions for Special:UncategorizedCategories on-wiki
Florian [Wed, 30 Mar 2016 20:05:25 +0000 (22:05 +0200)]
Allow to define exceptions for Special:UncategorizedCategories on-wiki

The new system message uncategorized-categories-exceptionlist can be changed
on-wiki to hold a list of categories, that shouldn't be visible on the special
page Special:UncategorizedCategories (with a trailing "* "), even if
these categories aren't in any category.

Bug: T126117
Change-Id: I65989e40f3caa2fad7b8b35109c0466e01084f72

5 years agoMerge "mediawiki.messagePoster.factory.js: Use formatversion=2 for API request"
jenkins-bot [Wed, 11 Jan 2017 17:17:13 +0000 (17:17 +0000)]
Merge "mediawiki.messagePoster.factory.js: Use formatversion=2 for API request"

5 years agoAdd more specific Site[] type hints to SiteStore classes
Thiemo Mättig [Tue, 10 Jan 2017 10:51:49 +0000 (11:51 +0100)]
Add more specific Site[] type hints to SiteStore classes

Change-Id: Ie52313861972fd1b269375dfc8f94afdf67bcb9f

5 years agoSpecialPageLanguage: Redirect to redirect by adding redirect=no
Fomafix [Sat, 4 Jun 2016 09:28:29 +0000 (09:28 +0000)]
SpecialPageLanguage: Redirect to redirect by adding redirect=no

Change-Id: Ifcdfcc2073141d7f2b6742f173ccebdacf9b03b0

5 years agomediawiki.messagePoster.factory.js: Use formatversion=2 for API request
Fomafix [Tue, 19 Apr 2016 05:07:12 +0000 (07:07 +0200)]
mediawiki.messagePoster.factory.js: Use formatversion=2 for API request

This simplifies precessing the response.
The parameter indexpageids: true is not necessary anymore.

Change-Id: I375237a249a81a4a3941ad4cace205b348cee9fc

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 11 Jan 2017 00:11:45 +0000 (01:11 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I76f26ecfc04c72821aefae58cb13e639942c8aff

5 years agoHTMLDateTimeField: Remove hacks for HTML5 form validation attributes
Bartosz Dziewoński [Thu, 24 Nov 2016 15:22:29 +0000 (16:22 +0100)]
HTMLDateTimeField: Remove hacks for HTML5 form validation attributes

No longer needed after I08244addcf9b6eb96137895f28e7b750914fef5c.
Also remove datetime.js from mediawiki.htmlform module.

Change-Id: Ic2410c689de3f70f573fa1c71456e6d3f334f80b

5 years agoHtml: Unblacklist HTML5 form validation attributes
Bartosz Dziewoński [Thu, 24 Nov 2016 15:18:24 +0000 (16:18 +0100)]
Html: Unblacklist HTML5 form validation attributes

We blacklisted them in 2010. Modern browsers support them fairly well,
and it doesn't seem to conflict with any of our code.

I tested this with SecurePoll poll creation form, which contains an
astonishingly wide range of form controls and validation options.

Change-Id: I08244addcf9b6eb96137895f28e7b750914fef5c

5 years agoHTMLForm: Suppress HTML5 form validation for non-JS users when needed
Bartosz Dziewoński [Fri, 2 Dec 2016 18:17:35 +0000 (19:17 +0100)]
HTMLForm: Suppress HTML5 form validation for non-JS users when needed

Our 'hide-if' fields are fundamentally incompatible with HTML5 form
validation attributes. If you have a checkbox field A, and field B
that is required, but hidden if A is unchecked - that's impossible to
express with HTML5 form validation. The only thing you can do is
remove the validation on B (or on the entire form).

The field contents are still validated server-side, just like if the
browser did not support HTML5 forms. The validation is also re-enabled
in JavaScript, since we have extra support for 'hide-if' field that
makes them work.

Change-Id: Ia7ffa76965a7c14af9b6d2db007b6255498398d9

5 years agoMerge "Reduce WAN object cache logging spam for reject set() calls"
jenkins-bot [Tue, 10 Jan 2017 22:00:13 +0000 (22:00 +0000)]
Merge "Reduce WAN object cache logging spam for reject set() calls"

5 years agoMerge "Add an refresh probability comment to worthRefreshPopular()"
jenkins-bot [Tue, 10 Jan 2017 21:42:09 +0000 (21:42 +0000)]
Merge "Add an refresh probability comment to worthRefreshPopular()"

5 years agoMerge "Added reason suggestion in block/delete/protect forms"
jenkins-bot [Tue, 10 Jan 2017 21:28:21 +0000 (21:28 +0000)]
Merge "Added reason suggestion in block/delete/protect forms"

5 years agoReduce WAN object cache logging spam for reject set() calls
Aaron Schulz [Tue, 10 Jan 2017 21:20:02 +0000 (13:20 -0800)]
Reduce WAN object cache logging spam for reject set() calls

Change-Id: I276c91b3b3b47d337f9c1d91a8348ca8f3d57194

5 years agoAdded reason suggestion in block/delete/protect forms
rlot [Wed, 4 Jan 2017 17:52:17 +0000 (18:52 +0100)]
Added reason suggestion in block/delete/protect forms

Bug: T34950
Change-Id: I9778c4992b127c36355949665b4fdf7482e7e0e7

5 years agoMerge "Implement OO.ui.isMobile"
jenkins-bot [Tue, 10 Jan 2017 19:24:55 +0000 (19:24 +0000)]
Merge "Implement OO.ui.isMobile"

5 years agoMerge "Removed deprecated unused method in RedisConnectionPool.php"
jenkins-bot [Tue, 10 Jan 2017 19:22:35 +0000 (19:22 +0000)]
Merge "Removed deprecated unused method in RedisConnectionPool.php"

5 years agoMerge "registration: Don't initialize MWServices super early"
jenkins-bot [Tue, 10 Jan 2017 19:19:18 +0000 (19:19 +0000)]
Merge "registration: Don't initialize MWServices super early"

5 years agoregistration: Don't initialize MWServices super early
Kunal Mehta [Tue, 10 Jan 2017 18:47:08 +0000 (10:47 -0800)]
registration: Don't initialize MWServices super early

Previously, MediaWikiServices would be initialized on the first
wfLoadExtension() call, which is super early and before it should be.
There's actually no reason we need to create the BagOStuff object in the
constructor, so let's defer it to loadFromQueue(). It now gets called
from the top of Setup.php, which is still a little early, but better
than before.

Bug: T154960
Change-Id: I3feef3b974ba1ba3afec0d453e1899cd476e72fb

5 years agoRemoved deprecated unused method in RedisConnectionPool.php
Yuriy Shnitkovskiy [Tue, 10 Jan 2017 11:02:31 +0000 (13:02 +0200)]
Removed deprecated unused method in RedisConnectionPool.php

There are no usages of RedisConnectionPool::handleException() in core or extensions
so it can safely be removed.

Bug: T61113
Change-Id: Icd9ceb394625e9610f5071d13fbfd2760c464870

5 years agoFix wrong syntax in release notes
TTO [Tue, 10 Jan 2017 11:49:42 +0000 (11:49 +0000)]
Fix wrong syntax in release notes

Change-Id: I1ab89c7c8ddfe61287fc6d71698cdb4957cc0b04

5 years agoRemove unused imports from test classes
Thiemo Mättig [Tue, 10 Jan 2017 10:49:58 +0000 (11:49 +0100)]
Remove unused imports from test classes

Validating this should be as simple as it can be: if the tests run,
this change should be fine. :-)

Change-Id: I8e4a3dfc83fdc9b8c8d7f5bbd067e088ebd2133d

5 years agoRemoved deprecated usages of Interwiki methods in core
Yuriy Shnitkovskiy [Tue, 10 Jan 2017 09:51:50 +0000 (11:51 +0200)]
Removed deprecated usages of Interwiki methods in core

Change-Id: Ibd25968660466c44189ccb01df1d8bec6e1b207c

5 years agojquery.accessKeyLabel: correct accesskey for MacOS Firefox >= 14
David Lynch [Mon, 9 Jan 2017 21:23:31 +0000 (13:23 -0800)]
jquery.accessKeyLabel: correct accesskey for MacOS Firefox >= 14

Rewrote the accesskey logic to be a switch rather than a fuzzy pile of ifs, so
it's easier to understand.

Bug: T121183
Change-Id: Id4de206ab92fba1468c6b1a9a199150561cce33c

5 years agoFix inconsistent capitalisation for link labels in EditWatchlist
divadsn [Mon, 9 Jan 2017 17:55:55 +0000 (17:55 +0000)]
Fix inconsistent capitalisation for link labels in EditWatchlist

This patch adds a uncapitalized version of 'history_short' message.

Bug: T151166
Change-Id: Ifecad060abfd3567952e2d0f41115c03f67751c1

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 9 Jan 2017 13:40:07 +0000 (14:40 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I9bed4493b6a5d12f6b77ad79e511d4c0ca4b53f7

5 years agoRemove cols and rows preferences
Chad Horohoe [Mon, 9 Jan 2017 10:56:41 +0000 (21:56 +1100)]
Remove cols and rows preferences

In https://gerrit.wikimedia.org/r/80061/, Chad was convinced this
preference is barely used and mostly set to weird values by people
who don't understand what they're doing.

He made some quick stats: http://p.defau.lt/?fgGU0StB4J9l0LC5GZq8AA

Used defaults of 80 columns and 25 rows in places that still
were asking for it. The old default values are left in
$wgDefaultUserOptions for now, since various extensions are
using them.

The 'rows' and 'columns' messages don't appear to be in use in
any extensions in Git, so I killed those as well.

(This is the same as I642188c74d929a586b1882a1cf8656056c4fcf5a.)

Bug: T26430
Change-Id: I6c9802bc4f9cf32fb75c3dd7b9e2dc18f271eedf

5 years agoDon't execute upload.loadConfig when it may not exist
Matthias Mullie [Thu, 5 Jan 2017 15:31:06 +0000 (16:31 +0100)]
Don't execute upload.loadConfig when it may not exist

Upload.BookletLayout creates a mw.Upload object, which has no
loadConfig method.
ForeignStructuredUpload.BookletLayout, which is a child of
Upload.BookletLayout, creates a mw.ForeignStructuredUpload
object, which does have this method.
Thus, that method should be moved to where we know the object
will have it.

Change-Id: Ibb1c0f2b8260a8b0a7cc9f02e3434aed7d163637

5 years agoMerge "Added log extract to Special:ChangeContentModel"
jenkins-bot [Mon, 9 Jan 2017 06:45:15 +0000 (06:45 +0000)]
Merge "Added log extract to Special:ChangeContentModel"

5 years agoAdded log extract to Special:ChangeContentModel
rlot [Sun, 8 Jan 2017 18:05:12 +0000 (19:05 +0100)]
Added log extract to Special:ChangeContentModel

Bug: T154874
Change-Id: I571ea324f31935c2394dce77e31c74c3afb76358

5 years agoAdd an refresh probability comment to worthRefreshPopular()
Aaron Schulz [Sun, 8 Jan 2017 03:00:00 +0000 (19:00 -0800)]
Add an refresh probability comment to worthRefreshPopular()

Change-Id: Ia6717881c7d5c19481c87ade5972c0ff641d6e11

5 years agoAvoid IDEA warning about $keys being both a parameter and loop variable
Aaron Schulz [Sun, 8 Jan 2017 00:10:23 +0000 (16:10 -0800)]
Avoid IDEA warning about $keys being both a parameter and loop variable

Change-Id: Id562053a71f135fa863cb88b5f081982c01575cf

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 7 Jan 2017 20:55:54 +0000 (21:55 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I4de5673f7ed0e4f5693634d8c387b154c548737c

5 years agoMerge "Make RefreshLinksJob handle LinksUpdateConstructed hooks doing DB writes"
jenkins-bot [Sat, 7 Jan 2017 17:58:30 +0000 (17:58 +0000)]
Merge "Make RefreshLinksJob handle LinksUpdateConstructed hooks doing DB writes"

5 years agoMake RefreshLinksJob handle LinksUpdateConstructed hooks doing DB writes
Aaron Schulz [Sat, 7 Jan 2017 05:52:29 +0000 (21:52 -0800)]
Make RefreshLinksJob handle LinksUpdateConstructed hooks doing DB writes

Bug: T153618
Change-Id: Iae52e9225fe132f2aa99e161611bf8258736d38d

5 years agoRemove left-over references from comments to removed FSRepo class
Timo Tijhof [Wed, 4 Jan 2017 03:12:06 +0000 (19:12 -0800)]
Remove left-over references from comments to removed FSRepo class

Follows-up 8b18ae7b5.

Change-Id: I10badb3e4648b2b32168a8aaad35855b2f6ae35e

5 years agoRemoved deprecated Linker functions
awu42 [Wed, 4 Jan 2017 22:44:16 +0000 (17:44 -0500)]
Removed deprecated Linker functions

Removed:
 - getInterwikiLinkAttributes (deprecated in 1.25)
 - getInternalLinkAttributes (deprecated in 1.25)
 - getInternalLinkAttributesObj (deprecated in 1.25)
 - getLinkAttributesInternal (deprecated in 1.25)
 - usages in includes/DummyLinker.php

Bug: T61113
Change-Id: I98182f4145dafdc6e60953f25a5f20575257a854

5 years agoAdditional test for {{PAGELANGUAGE}} magic word
TTO [Sat, 7 Jan 2017 02:27:23 +0000 (02:27 +0000)]
Additional test for {{PAGELANGUAGE}} magic word

Make sure it returns the default content language on pages where the
language is not explicitly set.

Bug: T59603
Change-Id: I7b1437bf1650166c8be77e5bd84181c577961f27

5 years agoMerge "Pull rendering of single result out of SpecialSearch"
jenkins-bot [Sat, 7 Jan 2017 07:26:05 +0000 (07:26 +0000)]
Merge "Pull rendering of single result out of SpecialSearch"

5 years agoAdd a new {{PAGELANGUAGE}} variable for use in wikitext
divadsn [Fri, 6 Jan 2017 19:44:36 +0000 (19:44 +0000)]
Add a new {{PAGELANGUAGE}} variable for use in wikitext

Returns the language code of the page being parsed.

Bug: T59603
Change-Id: I229edd6251cf1120b3395d1811dbb9d96d9cd8ee

5 years agoMerge "API: Allow finding log events and links to special pages"
jenkins-bot [Sat, 7 Jan 2017 00:27:35 +0000 (00:27 +0000)]
Merge "API: Allow finding log events and links to special pages"

5 years agoMerge "phpunit: Use assertEquals(, $delta) in UserTest instead of greater/lessThan"
jenkins-bot [Fri, 6 Jan 2017 23:15:43 +0000 (23:15 +0000)]
Merge "phpunit: Use assertEquals(, $delta) in UserTest instead of greater/lessThan"

5 years agoMerge "CollationFa: Third time's the charm"
jenkins-bot [Fri, 6 Jan 2017 23:07:55 +0000 (23:07 +0000)]
Merge "CollationFa: Third time's the charm"

5 years agoMerge "Add $wgSoftBlockRanges"
jenkins-bot [Fri, 6 Jan 2017 21:55:26 +0000 (21:55 +0000)]
Merge "Add $wgSoftBlockRanges"

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 6 Jan 2017 21:35:05 +0000 (22:35 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: If8375874e48c4835a4b398137806e8a44b8442f5

5 years agoAdd $wgSoftBlockRanges
Brad Jorsch [Wed, 23 Nov 2016 19:51:30 +0000 (14:51 -0500)]
Add $wgSoftBlockRanges

This variable allows for blocking anonymous contributions from certain
IP addresses. Account creation from these addresses will be allowed.

The idea here is that, for example, Wikimedia could add 10.0.0.0/8 to
prevent logged-out bots on labs from making confusing edits. See
I74f5f4a3.

The default for the new variable is empty to avoid causing issues on
upgrade for wikis on private networks.

Change-Id: I6c11a6b9e1a740de074e7ccd753418f94c4b6288

5 years agoAPI: Allow finding log events and links to special pages
Brad Jorsch [Fri, 6 Jan 2017 17:49:27 +0000 (12:49 -0500)]
API: Allow finding log events and links to special pages

Log events are sometimes attributed to a special page; it should be
allowed to use rcnamespace or lenamespace to filter for these.

It's also possible for special pages to be the targets of redirects, so
list=allredirects and prop=redirects should find them.

Maybe someday we'll record links to and transclusions of special pages
too (see T19597), so we may as well make it possible to query for those
as well via list=alllinks, list=alltransclusions, list=backlinks,
list=embeddedin, prop=linkshere, prop=transcludedin, prop=links, and
prop=templates.

NS_MEDIA has similar considerations: although we currently "normalize"
page links to the corresponding File and I don't think anything logs the
Media title rather than the File, transclusions and redirects do show
up in those tables.

Bug: T154319
Change-Id: I00348f83855c6c703b6bd6015f6d3bedc5bfd1c5

5 years agoMerge "API should allow querying user contribs by userid"
jenkins-bot [Fri, 6 Jan 2017 14:10:01 +0000 (14:10 +0000)]
Merge "API should allow querying user contribs by userid"

5 years agoAPI should allow querying user contribs by userid
blackspirit96 [Tue, 29 Nov 2016 22:34:21 +0000 (00:34 +0200)]
API should allow querying user contribs by userid

It verifies that the userids are valid and then it gathers
all the contribs. Anonymous users are not suported by userids
because every anonymous user have userid === 0.

Bug: T114465
Change-Id: Id4f4fb76ea06332a7c83a55922fdfda2d665e85a

5 years agoAdd a reason field to both Special:PageLanguage and ApiSetPageLanguage
MtDu [Fri, 6 Jan 2017 13:04:41 +0000 (07:04 -0600)]
Add a reason field to both Special:PageLanguage and ApiSetPageLanguage

Most MediaWiki actions allow a user to enter a comment/reason for taking the action.
This is logged in the change log.
Currently, both ApiSetPageLanguage and Special:PageLanguage don't do this.
This patch fixes this issue.

Bug: T154644
Change-Id: I6ae021086e1ec4440d6b2894a1b85d62eb36e172

5 years agoMerge "Add tagging support to imagerotate, revisiondelete, and tag API modules"
jenkins-bot [Fri, 6 Jan 2017 05:34:44 +0000 (05:34 +0000)]
Merge "Add tagging support to imagerotate, revisiondelete, and tag API modules"

5 years agoInclude JS variable for NewPP report
Aaron Schulz [Thu, 10 Nov 2016 20:29:27 +0000 (12:29 -0800)]
Include JS variable for NewPP report

Adapted from reverted commit b7c4c8717f9.

Bug: T110763
Change-Id: If249b679c534879bfac622592a1d2fa913a0cf9d

5 years agoMerge "parser: Update outdated comment about ImageGallery"
jenkins-bot [Thu, 5 Jan 2017 23:06:57 +0000 (23:06 +0000)]
Merge "parser: Update outdated comment about ImageGallery"

5 years agoMerge "Sync up with Parsoid parserTests."
jenkins-bot [Thu, 5 Jan 2017 21:49:41 +0000 (21:49 +0000)]
Merge "Sync up with Parsoid parserTests."

5 years agoSync up with Parsoid parserTests.
Arlo Breault [Thu, 5 Jan 2017 21:20:18 +0000 (13:20 -0800)]
Sync up with Parsoid parserTests.

This now aligns with Parsoid commit 974dd5b3d70acf59bb15e057dc37e3702195f3e0

Change-Id: Ia45d8e2539e7fec23503706be1b40a6eaf1f5888

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 5 Jan 2017 21:15:20 +0000 (22:15 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I77079f820222d35e482bf65c5fe634835c8b1ce8

5 years agoMerge "Follow-up 873d3c9ff: move new RC filters UI below the custom links"
jenkins-bot [Thu, 5 Jan 2017 20:55:15 +0000 (20:55 +0000)]
Merge "Follow-up 873d3c9ff: move new RC filters UI below the custom links"

5 years agoMerge "Add userExpLevel filter in the RCFilters UI"
jenkins-bot [Thu, 5 Jan 2017 20:26:07 +0000 (20:26 +0000)]
Merge "Add userExpLevel filter in the RCFilters UI"

5 years agoFollow-up 873d3c9ff: move new RC filters UI below the custom links
Roan Kattouw [Thu, 5 Jan 2017 20:18:51 +0000 (12:18 -0800)]
Follow-up 873d3c9ff: move new RC filters UI below the custom links

Wikis can add custom links, and these go between mw-specialpage-summary
and rcoptions. We want our UI to appear below these custom links, not above,
so insert it before rcoptions instead of after mw-specialpage-summary.

Change-Id: Ieacc054633046719bdc991c7f04d5eaa21a17189

5 years agoAdd userExpLevel filter in the RCFilters UI
Moriel Schottlender [Wed, 7 Dec 2016 22:19:53 +0000 (14:19 -0800)]
Add userExpLevel filter in the RCFilters UI

Bug: T149435
Change-Id: I6a19d4b24c45068dbd9ddb8a36a0f8a87868b912