lhc/web/wiklou.git
6 years agoFollow-up 31be7d0: send tags list if experimental mode is disabled
Roan Kattouw [Tue, 1 Aug 2017 21:32:51 +0000 (14:32 -0700)]
Follow-up 31be7d0: send tags list if experimental mode is disabled

Change-Id: Ia9f44ed47d79f02c5d14ce756133e64c7ae926f9

6 years agoRCFilters: Unsticky the 'limit' preference temporarily
Moriel Schottlender [Tue, 1 Aug 2017 21:04:04 +0000 (14:04 -0700)]
RCFilters: Unsticky the 'limit' preference temporarily

Bug: T172156
Bug: T171514
Change-Id: I0bed6de70655a4a8a90ceb2f900ffbe98e643d33

6 years agoMerge "Avoid duplicate accesskey hints on OOUI widgets"
jenkins-bot [Tue, 1 Aug 2017 22:13:19 +0000 (22:13 +0000)]
Merge "Avoid duplicate accesskey hints on OOUI widgets"

6 years agoMerge "Revert "mw.action.edit: Restore modifier keys for accesskey in tooltip for...
jenkins-bot [Tue, 1 Aug 2017 22:13:15 +0000 (22:13 +0000)]
Merge "Revert "mw.action.edit: Restore modifier keys for accesskey in tooltip for summary field""

6 years agoMerge "Update OOjs UI to v0.22.4"
jenkins-bot [Tue, 1 Aug 2017 22:08:29 +0000 (22:08 +0000)]
Merge "Update OOjs UI to v0.22.4"

6 years agoRCFilters: Trim results to allow searching for spaces after trigger
Moriel Schottlender [Tue, 1 Aug 2017 21:53:15 +0000 (14:53 -0700)]
RCFilters: Trim results to allow searching for spaces after trigger

Recognize a search string even if there are spaces after the trigger,
for example, '#   sometag' as 'sometag' in the 'tags' view.

Bug: T168225
Change-Id: Ic31b73396d9afe8cd62398b4cf5116f8aee25e67

6 years agoMerge "jsduck: Explcitly name library files so we don't pull in CSS files"
jenkins-bot [Tue, 1 Aug 2017 21:52:04 +0000 (21:52 +0000)]
Merge "jsduck: Explcitly name library files so we don't pull in CSS files"

6 years agoRCFilters: Scroll widget to top when switching view
Moriel Schottlender [Tue, 1 Aug 2017 21:49:23 +0000 (14:49 -0700)]
RCFilters: Scroll widget to top when switching view

Bug: T170651
Change-Id: I19865b0af73e88c2893ba688476aa505d7730947

6 years agoMerge "RCFilters: Pluralize 'show last X changes' message"
jenkins-bot [Tue, 1 Aug 2017 21:13:31 +0000 (21:13 +0000)]
Merge "RCFilters: Pluralize 'show last X changes' message"

6 years agoAvoid duplicate accesskey hints on OOUI widgets
Bartosz Dziewoński [Thu, 22 Jun 2017 19:30:03 +0000 (21:30 +0200)]
Avoid duplicate accesskey hints on OOUI widgets

Values returned by `Linker::tooltipAndAccesskeyAttribs()` and
`Linker::titleAttrib( ..., 'withaccess' )` include an accesskey
hint in the title text. This is unnecessary when used for OOjs UI
widgets, since after the changes from T168408 they display an
accesskey hint automatically.

Also fixed some other accesskey bugs in HTMLForm which probably
no one ever ran into.

Bug: T168408
Change-Id: I63285b5bce3341875a6d82eba059623bf105ca62

6 years agoRevert "mw.action.edit: Restore modifier keys for accesskey in tooltip for summary...
Bartosz Dziewoński [Thu, 22 Jun 2017 19:39:49 +0000 (19:39 +0000)]
Revert "mw.action.edit: Restore modifier keys for accesskey in tooltip for summary field"

No longer needed after changes from T168408.

This reverts commit 0269ae0fe57f5192743e99ccd67970db989b542d.

Bug: T168408
Change-Id: I50c24a9bada19a0e7d3a009c9afec073f6ffa357

6 years agoListToggle: Avoid href="#" for JavaScript buttons
Fomafix [Tue, 1 Aug 2017 20:57:45 +0000 (22:57 +0200)]
ListToggle: Avoid href="#" for JavaScript buttons

<a href="#"> is problematic because it allows to open a new tab on
middleclick and it shows a status line.

Change-Id: Id8d7f79a2894693a82f86ae46900e6f0aecba4f3

6 years agoUpdate OOjs UI to v0.22.4
James D. Forrester [Tue, 1 Aug 2017 20:32:18 +0000 (13:32 -0700)]
Update OOjs UI to v0.22.4

Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.22.4

Depends-On: I505e7c612b70a949d2b101172964bd7433fb8d5e
Change-Id: Ice2c56b035c5b9e6525d5b9c0d9b45eb07bb2943

6 years agojsduck: Explcitly name library files so we don't pull in CSS files
James D. Forrester [Tue, 1 Aug 2017 20:57:29 +0000 (13:57 -0700)]
jsduck: Explcitly name library files so we don't pull in CSS files

Change-Id: I8ee7c8a609543237f8280c190a9806cf5079de96

6 years agomediawiki.action.edit: Add TODO referencing T6714
James D. Forrester [Thu, 20 Jul 2017 19:18:44 +0000 (12:18 -0700)]
mediawiki.action.edit: Add TODO referencing T6714

Change-Id: Ifa5ba02d8e45b2529c17ba045e13fd6360569f4b

6 years agoFix not parsed message on Special:Import
Florian Schmidt [Tue, 1 Aug 2017 20:43:51 +0000 (22:43 +0200)]
Fix not parsed message on Special:Import

If session data is lost between the transactions (read: the csrf token
does not match), the error message contains some wiki markup as well as
HTML. However, unfortunately, SpecialImport uses $out->wrapWikiMsg() in
combination with an error message (with wiki markup and HTML) wrapped as
a parameter of another message. This results in an escaped paramater and
it is not parsed correctly, which leads in wiki markup send to the user.

This change fixes that issue by parsing the message directly.

Bug: T172114
Change-Id: If49a600173c44d098f25d6e2a9b87b7b7bf3ee2a

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 1 Aug 2017 20:07:32 +0000 (22:07 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I981b8966b91712c673793270e4bfe928e6d90e83

6 years agoRCFilters: Pluralize 'show last X changes' message
Moriel Schottlender [Tue, 1 Aug 2017 19:45:40 +0000 (12:45 -0700)]
RCFilters: Pluralize 'show last X changes' message

Bug: T171047
Change-Id: I353140a2aeb8a383fe439baf887676857ae99321

6 years agoShow redirect fragments on Special:ListRedirects
Fomafix [Tue, 1 Aug 2017 18:30:34 +0000 (20:30 +0200)]
Show redirect fragments on Special:ListRedirects

current:
* Redirect → Target
* Redirect with fragment → Target

new:
* Redirect → Target
* Redirect with fragment → Target#Anchor

Change-Id: I78ae08714508ca19eee717a661a62b8ea0a275de

6 years agoMerge "Introduce Title::getTalkPageIfDefined."
jenkins-bot [Tue, 1 Aug 2017 17:37:53 +0000 (17:37 +0000)]
Merge "Introduce Title::getTalkPageIfDefined."

6 years agoShow redirect fragments on Special:BrokenRedirects
Fomafix [Tue, 1 Aug 2017 17:17:45 +0000 (19:17 +0200)]
Show redirect fragments on Special:BrokenRedirects

current:
* Broken redirect (edit) → Target
* Broken redirect with anchor (edit) → Target

new:
* Broken redirect (edit) → Target
* Broken redirect with anchor (edit) → Target#Anchor

Change-Id: Ia2cc2b0610a747662ef2e70cd7829c49e46c74dd

6 years agoMerge "Implement a getter/setter for mCategoryViewerClass"
jenkins-bot [Tue, 1 Aug 2017 17:15:52 +0000 (17:15 +0000)]
Merge "Implement a getter/setter for mCategoryViewerClass"

6 years agoIntroduce Title::getTalkPageIfDefined.
daniel [Tue, 1 Aug 2017 17:09:13 +0000 (19:09 +0200)]
Introduce Title::getTalkPageIfDefined.

This is part of the effort to remove the assumption that every page
can have a talk page. Before we can merge Icee208dc4 which makes
Title::getTalkPage() throw an exception of no corresponding talk
namespace is defined, all extensions that call getTalkPage() must
be changed to either check canHaveTalkPage() first, or to use
the conveniance function getTalkPageIfDefined() instead.

Bug: T165149
Bug: T172146
Change-Id: I6d2613d8f7105048022f8093186dc57f1f8173ab

6 years agoMerge "Use mw-parser-output for numbered external link counters"
jenkins-bot [Tue, 1 Aug 2017 15:34:07 +0000 (15:34 +0000)]
Merge "Use mw-parser-output for numbered external link counters"

6 years agoMerge "Remove unused csslint rules"
jenkins-bot [Tue, 1 Aug 2017 15:34:04 +0000 (15:34 +0000)]
Merge "Remove unused csslint rules"

6 years agoImplement a getter/setter for mCategoryViewerClass
Louperivois [Sun, 30 Jul 2017 20:28:19 +0000 (16:28 -0400)]
Implement a getter/setter for mCategoryViewerClass

Cancel Change 17d5e809 and implement a getter/setter for mCategoryViewerClass

Bug: T172028
Change-Id: Idd8d836339ebf0f07b6782cfb06a3c9a65d93973

6 years agoMerge "Allow blacklisting certain namespaces in Special:ShortPages"
jenkins-bot [Tue, 1 Aug 2017 14:20:30 +0000 (14:20 +0000)]
Merge "Allow blacklisting certain namespaces in Special:ShortPages"

6 years agoUse mw-parser-output for numbered external link counters
Ed Sanders [Tue, 1 Aug 2017 12:45:54 +0000 (13:45 +0100)]
Use mw-parser-output for numbered external link counters

1. Not every skin uses mw-body-content (e.g. Minerva)
2. A page may have multiple separate parser outputs,
   e.g. Flow, where the numbering context should reset.

Change-Id: I867e0da619f99600210340becd468ec293bf9667

6 years agoRemove unused csslint rules
Ed Sanders [Tue, 1 Aug 2017 12:38:24 +0000 (13:38 +0100)]
Remove unused csslint rules

Change-Id: I290f442b6a15fecd7cd2061190e52585984d2b6b

6 years agoMerge "EditPage: Drop 80% width restriction on wpSummary for OOUI form"
jenkins-bot [Mon, 31 Jul 2017 23:20:18 +0000 (23:20 +0000)]
Merge "EditPage: Drop 80% width restriction on wpSummary for OOUI form"

6 years agoEditPage: Drop 80% width restriction on wpSummary for OOUI form
James D. Forrester [Thu, 20 Jul 2017 16:25:58 +0000 (09:25 -0700)]
EditPage: Drop 80% width restriction on wpSummary for OOUI form

Bug: T64316
Change-Id: I007a92e32a62cdf8a1b3ac479386e32fb54469f5

6 years agoMerge "RCFilters: show new changes"
jenkins-bot [Mon, 31 Jul 2017 22:23:45 +0000 (22:23 +0000)]
Merge "RCFilters: show new changes"

6 years agoAllow blacklisting certain namespaces in Special:ShortPages
jdlrobson [Thu, 27 Jul 2017 23:29:21 +0000 (16:29 -0700)]
Allow blacklisting certain namespaces in Special:ShortPages

This new config variable ($wgShortPagesNamespaceBlacklist)
allows wikis to specify namespaces which should be excluded from
Special:ShortPages.

This will be used by Commons, for which NS_FILE is a content namespace
(accessible via Special:Random and Special:Nearby) but is not useful
to list on Special:ShortPages.

If the blacklist cancels out all namespace in wgContentNamespaces then
all namespaces will show up on the page.

Bug: T170687
Change-Id: I10b4849a5d7f3f8af75ccc6cfba230d03725c898

6 years agoMerge "Adjust print styles for thumb"
jenkins-bot [Mon, 31 Jul 2017 22:01:28 +0000 (22:01 +0000)]
Merge "Adjust print styles for thumb"

6 years agoAdjust print styles for thumb
jdlrobson [Fri, 21 Jul 2017 21:45:35 +0000 (14:45 -0700)]
Adjust print styles for thumb

* Remove all borders and margins
* Gray thumb caption color
* Increasing padding
* Aligning to left
* Explicitly choose font size

Bug: T169823
Change-Id: If32f76f11f260bb33decf1ebe934470acee66ce6

6 years agoMerge "Remove obsolete animation vendor prefix"
jenkins-bot [Mon, 31 Jul 2017 21:00:22 +0000 (21:00 +0000)]
Merge "Remove obsolete animation vendor prefix"

6 years agoMerge "Follow-up b446a3b9: don't auto-close DateInputWidget too early"
jenkins-bot [Mon, 31 Jul 2017 20:57:04 +0000 (20:57 +0000)]
Merge "Follow-up b446a3b9: don't auto-close DateInputWidget too early"

6 years agoMerge "Enable archive search by default on Special:Undelete."
jenkins-bot [Mon, 31 Jul 2017 20:33:25 +0000 (20:33 +0000)]
Merge "Enable archive search by default on Special:Undelete."

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 31 Jul 2017 20:04:15 +0000 (22:04 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I5389c55f987527a1ba58e11cea0937e1d6888cb7

6 years agoRemove obsolete animation vendor prefix
Volker E [Mon, 31 Jul 2017 19:34:56 +0000 (21:34 +0200)]
Remove obsolete animation vendor prefix

Opera 12.10 supported unprefixed animations, gradients, transforms &
transitions. See http://www.opera.com/docs/changelogs/unified/1210/
Opera 15 used Blink and was supported up to v30 with
`-webkit` prefix.

Change-Id: Ie8edbcd7f85c713ea2156706ea3a3a7b423d8d9d

6 years agoFollow-up b446a3b9: don't auto-close DateInputWidget too early
Roan Kattouw [Mon, 31 Jul 2017 19:22:59 +0000 (12:22 -0700)]
Follow-up b446a3b9: don't auto-close DateInputWidget too early

Clicking on a month does not mean that the user has made a selection,
it only means that if we are in { precision: 'month' } mode.
In { precision: 'day' } mode, clicking a month is navigational,
so don't auto-close in that case.

Bug: T172041
Change-Id: I16a3e15a3b69844ff866fc09ba6a9268e85b2930

6 years agoMerge "Adjustments to floating elements in print styles"
jenkins-bot [Mon, 31 Jul 2017 18:38:50 +0000 (18:38 +0000)]
Merge "Adjustments to floating elements in print styles"

6 years agoAdjustments to floating elements in print styles
jdlrobson [Fri, 21 Jul 2017 21:48:16 +0000 (14:48 -0700)]
Adjustments to floating elements in print styles

Bug: T169823
Change-Id: I38c030fe5d321f8d3419dca5a69e2a0f99ae6c16

6 years agoMerge "refreshLinks.php: Fix fatal when using --category parameter"
jenkins-bot [Mon, 31 Jul 2017 18:19:03 +0000 (18:19 +0000)]
Merge "refreshLinks.php: Fix fatal when using --category parameter"

6 years agoEnable archive search by default on Special:Undelete.
Stanislav Malyshev [Mon, 31 Jul 2017 18:11:29 +0000 (11:11 -0700)]
Enable archive search by default on Special:Undelete.

Bug: T163235
Change-Id: I7341719ec8858011965f91d873ce446efc05dcdf

6 years agoRemove StructuredChangeFiltersEnableSaving completely
Stephane Bisson [Mon, 31 Jul 2017 15:47:59 +0000 (11:47 -0400)]
Remove StructuredChangeFiltersEnableSaving completely

Follow up I9202b7ee2f9ff80106d1fb4d3e6cddec04c8b4ac

Remove one last occurence in SpecialRecentchanges.php

Change-Id: I74fd3969ad73f0b34db5c4edcf9114c27b48b187

6 years agoMerge "RCFilters: Remove $wgStructuredChangeFiltersEnableSaving feature flag"
jenkins-bot [Mon, 31 Jul 2017 13:43:36 +0000 (13:43 +0000)]
Merge "RCFilters: Remove $wgStructuredChangeFiltersEnableSaving feature flag"

6 years agoMerge "mw.htmlform: Fix hiding of the textbox for 'selectorother' fields on page...
jenkins-bot [Mon, 31 Jul 2017 13:43:32 +0000 (13:43 +0000)]
Merge "mw.htmlform: Fix hiding of the textbox for 'selectorother' fields on page load"

6 years agoRCFilters: Remove $wgStructuredChangeFiltersEnableSaving feature flag
Roan Kattouw [Fri, 28 Jul 2017 19:09:22 +0000 (12:09 -0700)]
RCFilters: Remove $wgStructuredChangeFiltersEnableSaving feature flag

It's set to true now, and the feature is mature enough that we
don't need it to be feature-flagged anymore.

Change-Id: I9202b7ee2f9ff80106d1fb4d3e6cddec04c8b4ac

6 years agoRCFilters: show new changes
Stephane Bisson [Fri, 21 Jul 2017 15:41:36 +0000 (11:41 -0400)]
RCFilters: show new changes

When "live update" is off and new changes are detected,
show a link to load and prepend the changes to the list.

Also adding a line between old and new changes
when grouping by pages is off.

Bug: T163426
Change-Id: I6a111d23956bdc04caa4c71e9deede056779aafa

6 years agomw.htmlform: Fix hiding of the textbox for 'selectorother' fields on page load
Louperivois [Thu, 8 Jun 2017 20:50:41 +0000 (16:50 -0400)]
mw.htmlform: Fix hiding of the textbox for 'selectorother' fields on page load

Bug: T166621
Change-Id: I3921651585dd8b382afc99eca18a927eba1ebe47

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 30 Jul 2017 20:05:59 +0000 (22:05 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I96387423844fd658c38225a43cabdc06e258900f

6 years agorefreshLinks.php: Fix fatal when using --category parameter
Jesús Martínez Novo [Sun, 30 Jul 2017 13:39:36 +0000 (15:39 +0200)]
refreshLinks.php: Fix fatal when using --category parameter

A title object must be passed to refreshCategory(), which is created in
the above lines, not the string representation received as a parameter.

bug: T172061
Change-Id: Id579a86a26cb438c1866351064c6887dbcea23b0

6 years agoMerge "build: Update Travis CI config to use fast Trusty containers"
jenkins-bot [Sun, 30 Jul 2017 03:48:07 +0000 (03:48 +0000)]
Merge "build: Update Travis CI config to use fast Trusty containers"

6 years agoMerge "phpunit: Fix failing DeprecatedGlobalTest on HHVM at Travis CI"
jenkins-bot [Sun, 30 Jul 2017 03:47:27 +0000 (03:47 +0000)]
Merge "phpunit: Fix failing DeprecatedGlobalTest on HHVM at Travis CI"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 29 Jul 2017 20:02:39 +0000 (22:02 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I65223520fecf6d5ef2ae15427edf417422c15666

6 years agoFix some PHPDoc type hints in DatabaseMysqli
Ricordisamoa [Sat, 29 Jul 2017 09:17:24 +0000 (11:17 +0200)]
Fix some PHPDoc type hints in DatabaseMysqli

Use `@param mysqli_result` instead of `@param mysqli`.

Change-Id: I7e759c740f666651463c5eda884debc0e12655b2

6 years agoMerge "Hide "hideuser" on Special:Block for non-infinite blocks"
jenkins-bot [Sat, 29 Jul 2017 04:24:00 +0000 (04:24 +0000)]
Merge "Hide "hideuser" on Special:Block for non-infinite blocks"

6 years agobuild: Update Travis CI config to use fast Trusty containers
Timo Tijhof [Sat, 29 Jul 2017 00:56:19 +0000 (17:56 -0700)]
build: Update Travis CI config to use fast Trusty containers

We tried this before when Trusty containers were still in Beta,
but the issues we ran into at the time have since been fixed.

1. Missing package djvulibre-bin: Fixed.
   https://github.com/travis-ci/apt-package-whitelist/issues/4036

2. MySQL launch problems: Fixed
   https://github.com/travis-ci/travis-ci/issues/5837
   https://github.com/travis-ci/travis-ci/issues/6842

Also add HHVM 3.18 to the test matrix (latest currently preinstalled
version of HHVM).

Change-Id: I2f56e303c01f069207fb086e784e49292ea4eb58

6 years agophpunit: Fix failing DeprecatedGlobalTest on HHVM at Travis CI
Timo Tijhof [Sat, 29 Jul 2017 01:02:28 +0000 (18:02 -0700)]
phpunit: Fix failing DeprecatedGlobalTest on HHVM at Travis CI

Follows-up 1d77070f19e3. On Travis CI, this test fails on HHVM:

> There was 1 failure:
> 1) DeprecatedGlobalTest::testWarning
> Failed asserting that exception of type "PHPUnit_Framework_Error" is thrown.

I've been unable to reproduce this locally, but within Travis CI
it happens on both Trusty containers and Trusty VMs, no matter the
version of HHVM. After some trial and error, I narrowed it down
to the error_reporting setting, which presumably has a different default
in the HHVM package Travis CI uses.

Change-Id: I588218103d6c72df5ad4fb6289df688b3740233e

6 years agoMerge "RCFilters: Make 'related links' collapsible"
jenkins-bot [Sat, 29 Jul 2017 01:16:05 +0000 (01:16 +0000)]
Merge "RCFilters: Make 'related links' collapsible"

6 years agoMerge "Follow-up 0b3ea6e1ab: use more flexible regex for timestamp in ChangesListSpec...
jenkins-bot [Sat, 29 Jul 2017 01:14:17 +0000 (01:14 +0000)]
Merge "Follow-up 0b3ea6e1ab: use more flexible regex for timestamp in ChangesListSpecialPageTest"

6 years agoRCFilters: Make 'related links' collapsible
Moriel Schottlender [Fri, 28 Jul 2017 07:53:57 +0000 (00:53 -0700)]
RCFilters: Make 'related links' collapsible

Bug: T166919
Change-Id: I89d69c6614f641ac92143f0b1a718145e9cd61bd

6 years agoFollow-up 0b3ea6e1ab: use more flexible regex for timestamp in ChangesListSpecialPageTest
Roan Kattouw [Sat, 29 Jul 2017 00:36:25 +0000 (17:36 -0700)]
Follow-up 0b3ea6e1ab: use more flexible regex for timestamp in ChangesListSpecialPageTest

Postgres uses timestamps like "2017-07-28 17:37:03" that aren't all numbers.

Bug: T75174
Change-Id: I1b65578c955ccdce1060783b06c2ca577796e68f

6 years agoMerge "RCFilters: Create a sticky preference for days/limit groups"
jenkins-bot [Sat, 29 Jul 2017 00:05:39 +0000 (00:05 +0000)]
Merge "RCFilters: Create a sticky preference for days/limit groups"

6 years agoMerge "Follow-up to '3D' file type addition"
jenkins-bot [Sat, 29 Jul 2017 00:03:18 +0000 (00:03 +0000)]
Merge "Follow-up to '3D' file type addition"

6 years agoMerge "Update wikimedia/relpath from 1.0.3 -> 2.0.0"
jenkins-bot [Sat, 29 Jul 2017 00:01:17 +0000 (00:01 +0000)]
Merge "Update wikimedia/relpath from 1.0.3 -> 2.0.0"

6 years agoFollow-up to '3D' file type addition
Matthias Mullie [Thu, 20 Jul 2017 14:43:50 +0000 (16:43 +0200)]
Follow-up to '3D' file type addition

Based on feedback on Id78a504302fa664b353a4c45bdc5d99f95a0180a

Bug: T157348
Change-Id: Id6bfe8d20307f62e4673a5ef30e79f164b1ea034

6 years agoUpdate wikimedia/relpath from 1.0.3 -> 2.0.0
Timo Tijhof [Fri, 28 Jul 2017 21:26:40 +0000 (14:26 -0700)]
Update wikimedia/relpath from 1.0.3 -> 2.0.0

* (4f670afd92) Normalize leading path separator to forward slash
               Fixes Windows compatibility.
* (b0eeb17d31) Drop support for PHP 5.3 and PHP 5.4.

Depends-On: I98eb809ff72c4d09bfbb89a9dad9bc7094868240
Change-Id: I4111af30dfbfe2c72d52325bbd1923773e3b4202

6 years agoMerge "RCFilters: Remember legend expand/collapse state"
jenkins-bot [Fri, 28 Jul 2017 23:12:40 +0000 (23:12 +0000)]
Merge "RCFilters: Remember legend expand/collapse state"

6 years agoMerge "RCFilters: Open limit/days popups the other way"
jenkins-bot [Fri, 28 Jul 2017 23:10:57 +0000 (23:10 +0000)]
Merge "RCFilters: Open limit/days popups the other way"

6 years agoRCFilters: Create a sticky preference for days/limit groups
Moriel Schottlender [Thu, 27 Jul 2017 22:32:32 +0000 (15:32 -0700)]
RCFilters: Create a sticky preference for days/limit groups

- Add sticky preference for groups and the operation behind
  it.
- Allow normalization from the UriProcessor
- Backwards-compatibility for saved queries
- Allow saved queries to load regardless of sticky params
  and to be compared correctly without the sticky params.
- Add days/limit preferences and update those on change
- Update the preference even if we received a new value
  from the URL.

Bug: T171514
Bug: T171368
Change-Id: I5232f3372f0e5c981332d152faf0ab47cc470b56

6 years agoMerge "RCFilters: Allow setting a new query as default"
jenkins-bot [Fri, 28 Jul 2017 23:02:25 +0000 (23:02 +0000)]
Merge "RCFilters: Allow setting a new query as default"

6 years agoRCFilters: Open limit/days popups the other way
Moriel Schottlender [Fri, 28 Jul 2017 22:58:55 +0000 (15:58 -0700)]
RCFilters: Open limit/days popups the other way

Bug: T171968
Change-Id: I83127f43cef02194c839cd0ac531ae43fa386e9a

6 years agoRCFilters: Remember legend expand/collapse state
Moriel Schottlender [Fri, 28 Jul 2017 22:19:27 +0000 (15:19 -0700)]
RCFilters: Remember legend expand/collapse state

Bug: T168043
Change-Id: I2f22f4211cfcbd9e81ee20f013fde921635e5ebc

6 years agoMerge "Adjustments to print table styles"
jenkins-bot [Fri, 28 Jul 2017 22:05:43 +0000 (22:05 +0000)]
Merge "Adjustments to print table styles"

6 years agoMerge "rdbms: Complete coverage for Database::selectSQLText()"
jenkins-bot [Fri, 28 Jul 2017 21:02:54 +0000 (21:02 +0000)]
Merge "rdbms: Complete coverage for Database::selectSQLText()"

6 years agoRCFilters: Allow setting a new query as default
Stephane Bisson [Fri, 28 Jul 2017 19:47:48 +0000 (15:47 -0400)]
RCFilters: Allow setting a new query as default

When creating a new saved query, there's a checkbox
to set it as default as the same time.

Bug: T171922
Change-Id: Id6da0e79c54bc65d76636bbff64b2ece568c0cd4

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 28 Jul 2017 19:59:25 +0000 (21:59 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ie36e6cc52456c039483fb52bbf56a5714d7e3128

6 years agoMerge "updateCredits: Fix collation name"
jenkins-bot [Fri, 28 Jul 2017 18:55:29 +0000 (18:55 +0000)]
Merge "updateCredits: Fix collation name"

6 years agoMerge "RCFilters: Reduce space between filters and saved queries button"
jenkins-bot [Fri, 28 Jul 2017 18:11:14 +0000 (18:11 +0000)]
Merge "RCFilters: Reduce space between filters and saved queries button"

6 years agoMerge "RCFilters: Trim input text before evaluation"
jenkins-bot [Fri, 28 Jul 2017 18:08:38 +0000 (18:08 +0000)]
Merge "RCFilters: Trim input text before evaluation"

6 years agoMerge "RCFilters: Close limit/days popups after choosing value"
jenkins-bot [Fri, 28 Jul 2017 18:07:29 +0000 (18:07 +0000)]
Merge "RCFilters: Close limit/days popups after choosing value"

6 years agoupdateCredits: Fix collation name
Bartosz Dziewoński [Fri, 28 Jul 2017 17:13:54 +0000 (19:13 +0200)]
updateCredits: Fix collation name

'uca-default-u-kn' is a valid name for MediaWiki's category collation
functionality ($wgCategoryCollation / Collation class), not for PHP's
collation functionality (Collator class).

'uca-default-u-kn' for Collation maps to 'root-u-kn' for Collator
(see Collation::factory()), and the '-u-kn' suffix is later stripped
to enable numeric collation (see IcuCollation::_construct()).

This doesn't seem to result in any changes in the output.

Change-Id: I8cc7d283aee5408f8b7bed365661ff286236a694

6 years agoMerge "resourceloader: Soft-deprecate use of global LESS variables"
jenkins-bot [Fri, 28 Jul 2017 17:09:49 +0000 (17:09 +0000)]
Merge "resourceloader: Soft-deprecate use of global LESS variables"

6 years agoresourceloader: Soft-deprecate use of global LESS variables
Timo Tijhof [Sat, 22 Jul 2017 00:29:14 +0000 (17:29 -0700)]
resourceloader: Soft-deprecate use of global LESS variables

Add deprecation notice to $wgResourceLoaderLESSVars and
hook 'ResourceLoaderGetLessVars'. Warnings to be added in 1.31.

Users should migrate to exposing variables via the individual module's
getLessVars() method.
- Ensures better cache invalidation.
- Separates concerns for getting information and exposing information
  as less variables. And allows an extension to, for example, use
  a different variable name for something if needed.

The 'deviceWidthTablet' variable will need to be migrated to
either a regular configuration variable that individual modules
can expose in their getLessVars() method - or, alternatively, we
can deprecate it altogether in favour of exposing it through
a less import file instead (see T112747). That would mean, however,
that the value can only be changed in core, not by site config.

Bug: T140804
Change-Id: I61cff1d9652d88dc53c43075dd5053b7707809e6

6 years agoMerge "resourceloader: Fix @covers for CSSMin tests"
jenkins-bot [Fri, 28 Jul 2017 14:08:42 +0000 (14:08 +0000)]
Merge "resourceloader: Fix @covers for CSSMin tests"

6 years agoAdjustments to print table styles
jdlrobson [Fri, 21 Jul 2017 21:33:52 +0000 (14:33 -0700)]
Adjustments to print table styles

* Remove bolding
* Reset backgrounds
* Explicitly choose font sizes
* Adjust paddings

Bug: T169823
Change-Id: I9c82f10fa92a24c7bcfff4458c6e5b8d2ddaffbf

6 years agoMerge "RCFilters: Make namespace and tag features no longer experimental"
jenkins-bot [Fri, 28 Jul 2017 08:18:01 +0000 (08:18 +0000)]
Merge "RCFilters: Make namespace and tag features no longer experimental"

6 years agoRCFilters: Reduce space between filters and saved queries button
Moriel Schottlender [Fri, 28 Jul 2017 08:02:45 +0000 (01:02 -0700)]
RCFilters: Reduce space between filters and saved queries button

Bug: T171822
Change-Id: I521a8e00ad8ea585b30d4d7e0ca36b1e5da031c2

6 years agoRCFilters: Trim input text before evaluation
Moriel Schottlender [Fri, 28 Jul 2017 07:28:40 +0000 (00:28 -0700)]
RCFilters: Trim input text before evaluation

Make sure that trailing and leading spaces don't affect searching
and view switches.

Bug: T168225
Change-Id: I2379c7848887ef2cb2cafa9c3cfef8cbe5ed6a62

6 years agoRCFilters: Close limit/days popups after choosing value
Moriel Schottlender [Fri, 28 Jul 2017 07:21:34 +0000 (00:21 -0700)]
RCFilters: Close limit/days popups after choosing value

Change-Id: Icd47d243ee64fdc9ab5c0790735a48ba9585e808

6 years agoMerge "Fix Special:ListUsers "subpage parameter" handling"
jenkins-bot [Fri, 28 Jul 2017 07:05:54 +0000 (07:05 +0000)]
Merge "Fix Special:ListUsers "subpage parameter" handling"

6 years agoMerge "Enable jsduck for resources/src/mediawiki.rcfilters and make pass"
jenkins-bot [Fri, 28 Jul 2017 05:48:51 +0000 (05:48 +0000)]
Merge "Enable jsduck for resources/src/mediawiki.rcfilters and make pass"

6 years agoMerge "RCFilters UI: Remove duplicate(!!) method mw.rcfilters.Controller#_getDefaultP...
jenkins-bot [Fri, 28 Jul 2017 05:40:15 +0000 (05:40 +0000)]
Merge "RCFilters UI: Remove duplicate(!!) method mw.rcfilters.Controller#_getDefaultParams"

6 years agoresourceloader: Fix @covers for CSSMin tests
Timo Tijhof [Fri, 28 Jul 2017 04:40:21 +0000 (21:40 -0700)]
resourceloader: Fix @covers for CSSMin tests

Change-Id: Idb451d244fbdfbb218a56c2953298b7fe29ed3d4

6 years agordbms: Complete coverage for Database::selectSQLText()
Timo Tijhof [Fri, 28 Jul 2017 04:19:53 +0000 (21:19 -0700)]
rdbms: Complete coverage for Database::selectSQLText()

Only missing cases where 'USE INDEX' and 'IGNORE INDEX'.
The test doesn't do much since the underlying methods are no-ops
by default, but at least it ensures there are no PHP errors from
these branches.

We can later re-use some of these test cases in tests specific
to one backend.

Change-Id: Id004a2ae41efaa7a367f964013e25d98ecc591ff

6 years agophpunit: Exclude /languages/messages from coverage report
Timo Tijhof [Fri, 28 Jul 2017 04:03:18 +0000 (21:03 -0700)]
phpunit: Exclude /languages/messages from coverage report

Indexing these files takes about 5-10% of the run time when generating
code coverage reports for core. It has no coverage at the moment and
probably won't any time soon given it's just variable declarations.

At least for now, exclude it to significantly speed up generating of
coverage reports.

Change-Id: I0357e004e96d4f4b19036474c8353ddb778e31f3

6 years agoEnable jsduck for resources/src/mediawiki.rcfilters and make pass
Roan Kattouw [Thu, 27 Jul 2017 23:18:19 +0000 (16:18 -0700)]
Enable jsduck for resources/src/mediawiki.rcfilters and make pass

Change-Id: I2a29689e2697108a5c5206cc61b36b5fb838182f

6 years agoMerge "Split minoredit into minoredit and enotif_minoredit"
jenkins-bot [Fri, 28 Jul 2017 00:34:55 +0000 (00:34 +0000)]
Merge "Split minoredit into minoredit and enotif_minoredit"