lhc/web/wiklou.git
6 years agoMerge "Add dropSequence to postgres"
jenkins-bot [Thu, 14 Dec 2017 21:57:45 +0000 (21:57 +0000)]
Merge "Add dropSequence to postgres"

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 14 Dec 2017 20:59:04 +0000 (21:59 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I0e9482e99525f1fa6fd791f09597abd91485342b

6 years agoAvoid using array_map in ExtensionRegistry and ExtensionProcessor for simple operations
Yifei He [Wed, 13 Dec 2017 09:41:03 +0000 (17:41 +0800)]
Avoid using array_map in ExtensionRegistry and ExtensionProcessor for simple operations

Bug: T182645
Change-Id: Ia98b1d798b1f93ca30686c009d479668616229ae

6 years agoMerge "Change EnqueueJob docs to discourage obsolete use-cases"
jenkins-bot [Thu, 14 Dec 2017 03:22:29 +0000 (03:22 +0000)]
Merge "Change EnqueueJob docs to discourage obsolete use-cases"

6 years agoChange EnqueueJob docs to discourage obsolete use-cases
Aaron Schulz [Wed, 6 Dec 2017 21:15:22 +0000 (13:15 -0800)]
Change EnqueueJob docs to discourage obsolete use-cases

Bug: T181216
Change-Id: I9332d26ae9a74c3721cff9c497d5356f05efb428

6 years agoFix manual IN queries in checkStorage.php
Pppery [Thu, 14 Dec 2017 01:56:14 +0000 (20:56 -0500)]
Fix manual IN queries in checkStorage.php

Bug: T182689
Change-Id: Ifca7bd6d0385dd470cddc483f4641eeb2832580c

6 years agoMerge "Track which namespaces edit conflicts are resolved in"
jenkins-bot [Thu, 14 Dec 2017 00:47:19 +0000 (00:47 +0000)]
Merge "Track which namespaces edit conflicts are resolved in"

6 years agoMerge "RCFilters: Change findHighlightedItem due to deprecation"
jenkins-bot [Wed, 13 Dec 2017 23:29:37 +0000 (23:29 +0000)]
Merge "RCFilters: Change findHighlightedItem due to deprecation"

6 years agoMerge "Convert includes/Feed.php to Mustache templates"
jenkins-bot [Wed, 13 Dec 2017 23:09:25 +0000 (23:09 +0000)]
Merge "Convert includes/Feed.php to Mustache templates"

6 years agoRCFilters: Change findHighlightedItem due to deprecation
Moriel Schottlender [Wed, 13 Dec 2017 22:58:40 +0000 (14:58 -0800)]
RCFilters: Change findHighlightedItem due to deprecation

SelectWidget's getHighlightedItem was deprecated and switched with
findHighlightedItem, see T76630

Change-Id: I90535c9f72d9a63e8e8d4184cc85aaf77e7b454c

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 13 Dec 2017 21:58:52 +0000 (22:58 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I10dac54f4429e4fdec8f0e3d32b7f9ed1c16bc22

6 years agoMerge "mediawiki.loader: Avoid jQuery for simple creation and selection"
jenkins-bot [Wed, 13 Dec 2017 21:23:28 +0000 (21:23 +0000)]
Merge "mediawiki.loader: Avoid jQuery for simple creation and selection"

6 years agoMerge "RCLFilters: display target page as a title"
jenkins-bot [Wed, 13 Dec 2017 21:14:28 +0000 (21:14 +0000)]
Merge "RCLFilters: display target page as a title"

6 years agoMerge "Fix autoloading of ExportProgressFilter"
jenkins-bot [Wed, 13 Dec 2017 21:12:15 +0000 (21:12 +0000)]
Merge "Fix autoloading of ExportProgressFilter"

6 years agoFix autoloading of ExportProgressFilter
Albert221 [Wed, 13 Dec 2017 16:59:45 +0000 (17:59 +0100)]
Fix autoloading of ExportProgressFilter

Bug: T177239
Change-Id: Ieb5d5aa78d569af8cd8f8bfa32ce10a33482cb84

6 years agoRCLFilters: display target page as a title
Stephane Bisson [Wed, 6 Dec 2017 21:57:40 +0000 (16:57 -0500)]
RCLFilters: display target page as a title

* Url decode target param
* Pass through mw.Title to convert underscores to spaces

Bug: T182164
Change-Id: Iabb0d8ea2b9f93f943e8493ee0a29d3bee3b3682

6 years agoMerge "resourceloader: Use document.head instead of getElementsByTagName"
jenkins-bot [Wed, 13 Dec 2017 20:28:24 +0000 (20:28 +0000)]
Merge "resourceloader: Use document.head instead of getElementsByTagName"

6 years agoConvert includes/Feed.php to Mustache templates
Pppery [Tue, 12 Dec 2017 00:58:41 +0000 (19:58 -0500)]
Convert includes/Feed.php to Mustache templates

Bug: T182212
Change-Id: Ic198efb6a46ecc2d8b8b49ab594205d69a03efdb

6 years agoMerge "Follow-up Ib933de3a3f: remove unnecessary override from SpecialWatchlist"
jenkins-bot [Wed, 13 Dec 2017 20:12:45 +0000 (20:12 +0000)]
Merge "Follow-up Ib933de3a3f: remove unnecessary override from SpecialWatchlist"

6 years agoFollow-up Ib933de3a3f: remove unnecessary override from SpecialWatchlist
Roan Kattouw [Wed, 13 Dec 2017 19:29:55 +0000 (11:29 -0800)]
Follow-up Ib933de3a3f: remove unnecessary override from SpecialWatchlist

isStructuredFilterUiEnabledByDefault() should no longer be overridden,
overrides should be put in the static checkStructuredFilterUiEnabled()
instead. That function was already added, but the duplicated non-static
function wasn't removed.

It looks to me that ?rcfilters=1 shouldn't have been working on
Watchlist for this reason, but it was working, and I can't figure out
why.

Change-Id: Iaf962b4e0428e262b57dc12ee0ba2cb6f854eb7e

6 years agomediawiki.loader: Avoid jQuery for simple creation and selection
Timo Tijhof [Wed, 13 Dec 2017 19:27:41 +0000 (20:27 +0100)]
mediawiki.loader: Avoid jQuery for simple creation and selection

Use document.createElement and document.head instead.

Change-Id: Ia0f981da34f9f8dbc328e46a44511b2573b4e1b8

6 years agoresourceloader: Use document.head instead of getElementsByTagName
Timo Tijhof [Wed, 13 Dec 2017 19:24:19 +0000 (20:24 +0100)]
resourceloader: Use document.head instead of getElementsByTagName

Supported in all Grade A browsers. Also already being used
by jquery.js (without fallback), which we depend on.

Browser support (per MDN):
- Desktop: Chrome 4+, FF 4+, Edge, IE 9+, Opera 11+, Safari 5+
- Mobile: Android, Edge, FF Mobile 4+, IE Mobile 9+, Opera Mobile,
  Mobile Safari

(Those without numbers, have support since their initial release)

Change-Id: I2e9820de8463518a14a0d679d1f339c3a2f9dc66

6 years agoMerge "RCLFilters: support target page with a subpage"
jenkins-bot [Wed, 13 Dec 2017 18:55:37 +0000 (18:55 +0000)]
Merge "RCLFilters: support target page with a subpage"

6 years agoRCLFilters: support target page with a subpage
Stephane Bisson [Wed, 13 Dec 2017 18:29:43 +0000 (13:29 -0500)]
RCLFilters: support target page with a subpage

Correctly extract the target page when it has a subpage.
Examples (taken from unit tests):
http://host/wiki/Special:RecentChangesLinked/Moai/Sub1
http://host/wiki/Special:RecentChangesLinked/Category:Foo/Bar
http://host/w/index.php?title=Special:RecentChangesLinked/Moai/Sub1

Bug: T182734
Change-Id: Id6909728f461a3cd687185abd304f2fac5dc6000

6 years agoMerge "RCFilters: Fix live update"
jenkins-bot [Wed, 13 Dec 2017 18:28:30 +0000 (18:28 +0000)]
Merge "RCFilters: Fix live update"

6 years agoRCFilters: Fix live update
Stephane Bisson [Wed, 13 Dec 2017 15:10:41 +0000 (10:10 -0500)]
RCFilters: Fix live update

When Id55702ecbe6b96ee57453d4f86f20bd94a401d7c
introduced the MainWrapperWidget, it changed
the order on initialization, which prevents
ChangesListViewModel from getting the initial
value of the 'from' parameter and thus
disables polling for new changes.

This patch ensures ChangesListViewModel is
given the initial form in its constructor
so it can extract what it needs from it
before the page DOM is being transformed.

Bug: T182788
Change-Id: I1b72790194877ff0f200c87e4f40a942f1ccac3b

6 years agoFix getNamespace error
petarpetkovic [Wed, 13 Dec 2017 14:29:25 +0000 (15:29 +0100)]
Fix getNamespace error

In mw.rcfilters.init file, getNamespace method is introduced in Id55702ecbe.
That method is invoked through 'this' context, which can be different
depending on how init method is invoked, which can lead to errors,
causing RCFilters not to render correctly.

Change-Id: Ifd9cb49e547077c622a5a3757361a85d99283f62

6 years agoProvide personal tools getter
petarpetkovic [Mon, 6 Nov 2017 19:03:12 +0000 (20:03 +0100)]
Provide personal tools getter

- Add public function to get user's personal tools.
- Add new level of abstraction to the creation on personal tools list items,
by enabling user to provide list of personal tools.

Change-Id: I549376af6f7380dbadfb5f3f7f7171bbe64cccd7

6 years agoMerge "Add parameter for query/search to fetch augmented data."
jenkins-bot [Wed, 13 Dec 2017 09:35:58 +0000 (09:35 +0000)]
Merge "Add parameter for query/search to fetch augmented data."

6 years agoSync up with Parsoid parserTests.txt
C. Scott Ananian [Tue, 12 Dec 2017 22:52:02 +0000 (17:52 -0500)]
Sync up with Parsoid parserTests.txt

This now aligns with Parsoid commit 741fc5dc0f683df8d81bc09843734dad966138bd

Change-Id: I5a40b9410bbf421e22e37063785446db25e7af42

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 12 Dec 2017 21:22:00 +0000 (22:22 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I81cc494f3e476d9699cb7ad3ee978e61b3f5524f

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 12 Dec 2017 21:01:23 +0000 (22:01 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ibcdae5b4477c05b7cfd46c49c62160cd845ebc52

6 years agoAdded an optional $maxdepth to CategoryFinder
Valerio Bozzolan [Fri, 3 Nov 2017 01:46:52 +0000 (02:46 +0100)]
Added an optional $maxdepth to CategoryFinder

Bug: T179065
Change-Id: I760bb75aa9f14d55456ea2d604a4c25234826403

6 years agoMerge "Absolutely position legend only on new RCFilters"
jenkins-bot [Tue, 12 Dec 2017 20:13:21 +0000 (20:13 +0000)]
Merge "Absolutely position legend only on new RCFilters"

6 years agoMerge "Allow users to prevent new users from sending them email."
jenkins-bot [Tue, 12 Dec 2017 17:48:47 +0000 (17:48 +0000)]
Merge "Allow users to prevent new users from sending them email."

6 years agoMerge "maintenance: Replace manual IN query with select wrapper"
jenkins-bot [Tue, 12 Dec 2017 14:41:36 +0000 (14:41 +0000)]
Merge "maintenance: Replace manual IN query with select wrapper"

6 years agoMerge "SpecialListgrouprights: Fix "Namespace restrictions" header ID"
jenkins-bot [Tue, 12 Dec 2017 13:17:23 +0000 (13:17 +0000)]
Merge "SpecialListgrouprights: Fix "Namespace restrictions" header ID"

6 years agoMerge "Linker: Use Parser::guessSectionNameFromStrippedText()"
jenkins-bot [Tue, 12 Dec 2017 13:13:07 +0000 (13:13 +0000)]
Merge "Linker: Use Parser::guessSectionNameFromStrippedText()"

6 years agoMerge "Parser: Add guessSectionNameFromStrippedText() and refactor"
jenkins-bot [Tue, 12 Dec 2017 13:10:55 +0000 (13:10 +0000)]
Merge "Parser: Add guessSectionNameFromStrippedText() and refactor"

6 years agoAbsolutely position legend only on new RCFilters
petarpetkovic [Tue, 12 Dec 2017 12:52:39 +0000 (13:52 +0100)]
Absolutely position legend only on new RCFilters

- Don't use absolute positioning on legend when user opts out of
improved version of Recent Changes, or disables "New filters for edit review"
beta feature to opt out of improved version of Watchlist.

Bug: T182363
Change-Id: Ib02372ab7ad97f3f50764ad612e38096f92131ad

6 years agomaintenance: Replace manual IN query with select wrapper
Yifei He [Tue, 12 Dec 2017 11:27:54 +0000 (19:27 +0800)]
maintenance: Replace manual IN query with select wrapper

Bug: T182208
Change-Id: I4c410bc1f7a57efacda4ac71a074a8a8ee2d1d98

6 years agoAllow users to prevent new users from sending them email.
David Barratt [Tue, 14 Nov 2017 21:49:52 +0000 (16:49 -0500)]
Allow users to prevent new users from sending them email.

Users now have the option to prevent Newbie users from sending
them emails.

Bug: T138165
Change-Id: I5d5332e50971fbcd1fa630d6bd03bdf757a9d1f1

6 years agoMerge "Enable using PSR-4 autoloader for MediaWiki core and extensions"
jenkins-bot [Tue, 12 Dec 2017 00:37:08 +0000 (00:37 +0000)]
Merge "Enable using PSR-4 autoloader for MediaWiki core and extensions"

6 years agoEnable using PSR-4 autoloader for MediaWiki core and extensions
Kunal Mehta [Thu, 24 Aug 2017 18:05:26 +0000 (11:05 -0700)]
Enable using PSR-4 autoloader for MediaWiki core and extensions

This adds support for a PSR-4 (<http://www.php-fig.org/psr/psr-4/>)
autoloader, so instead of needing to manually list each class, just the
namespace prefix is needed.

Extensions can set a "AutoloadNamespaces" property in extension.json to
register PSR-4 compatible namespaces to be autoloaded.

The implementation is based off of the example implementation
(<http://www.php-fig.org/psr/psr-4/examples/>) with some modifications
for performance, notably cutting down on function calls, and only trying
to look up classes that are namespaced.

The generateLocalAutoload.php script will ignore any directory that is
registered as a PSR-4 namespace.

Bug: T99865
Bug: T173799
Change-Id: Id095dde37cbb40aa424fb628bd3c94e684ca2f65

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 11 Dec 2017 22:01:37 +0000 (23:01 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I0431dc404595d6d9bcf2bbfe0b11ff68fb1fce38

6 years agoRemove unused 'pool' param from WANObjectCache::newEmpty()
Lucas Werkmeister [Mon, 11 Dec 2017 17:27:47 +0000 (18:27 +0100)]
Remove unused 'pool' param from WANObjectCache::newEmpty()

The 'pool' parameter was removed in commit 09a0a5e4f6 (change
I5631eb1b13), retaining it in this helper method just confuses people
who read the code.

Change-Id: I7907a1fc4c613362d74e9045bc7dc41bbd9bf815

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 10 Dec 2017 20:55:53 +0000 (21:55 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib628edb905b75ef65201955e756baf171a716699

6 years agoFix test class names to match convention
Umherirrender [Sun, 10 Dec 2017 10:40:05 +0000 (11:40 +0100)]
Fix test class names to match convention

The test class should have Test at end
and same name as the testing class

Change-Id: Id0c90994d257fb325834e123b462f7f0849ac556

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 9 Dec 2017 20:55:49 +0000 (21:55 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I004706649eae504f560219442ff44054eb6dca6c

6 years agoMerge "Add @covers for includes/shell/ tests"
jenkins-bot [Sat, 9 Dec 2017 06:33:26 +0000 (06:33 +0000)]
Merge "Add @covers for includes/shell/ tests"

6 years agoAdd @covers for includes/shell/ tests
Kunal Mehta [Sat, 9 Dec 2017 06:08:28 +0000 (22:08 -0800)]
Add @covers for includes/shell/ tests

Change-Id: I495c64622f39ad7e0343e8341771d5a4a3449e97

6 years agoMerge "Chinese Conversion Table Update 2017-5"
jenkins-bot [Sat, 9 Dec 2017 04:50:46 +0000 (04:50 +0000)]
Merge "Chinese Conversion Table Update 2017-5"

6 years agoMerge "Remove references to deleted $this->debug in installer"
jenkins-bot [Fri, 8 Dec 2017 23:44:26 +0000 (23:44 +0000)]
Merge "Remove references to deleted $this->debug in installer"

6 years agoMerge "Prevent new users from being sent emails"
jenkins-bot [Fri, 8 Dec 2017 23:34:49 +0000 (23:34 +0000)]
Merge "Prevent new users from being sent emails"

6 years agoRemove references to deleted $this->debug in installer
Albert221 [Fri, 8 Dec 2017 23:33:01 +0000 (00:33 +0100)]
Remove references to deleted $this->debug in installer

Bug: T182210
Change-Id: Id4c574ae08f8f3bccc33e71781b3f66fa4430040

6 years agoMove RELEASE-NOTES-1.30 into HISTORY
Reedy [Fri, 8 Dec 2017 22:02:47 +0000 (22:02 +0000)]
Move RELEASE-NOTES-1.30 into HISTORY

Change-Id: I77e26c8e2b2bbb6a07b355c20af764de4e005dd1

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 8 Dec 2017 21:12:34 +0000 (22:12 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I7415227005ae3cefd9781989c06e9129f5405d6a

6 years agoMerge "Add tabindex to Special:Upload in mw-editTools"
jenkins-bot [Fri, 8 Dec 2017 21:06:32 +0000 (21:06 +0000)]
Merge "Add tabindex to Special:Upload in mw-editTools"

6 years agoMerge "Cast block start to int in maintenace SQL"
jenkins-bot [Fri, 8 Dec 2017 20:42:49 +0000 (20:42 +0000)]
Merge "Cast block start to int in maintenace SQL"

6 years agoCast block start to int in maintenace SQL
Phantom42 [Fri, 8 Dec 2017 19:35:38 +0000 (21:35 +0200)]
Cast block start to int in maintenace SQL

Bug: T182209
Change-Id: Ic2dbbacdf0a77b8ac531cff8e11be0da8014e083

6 years agoRCFilters: Add class back on "show new changes" link
Roan Kattouw [Fri, 8 Dec 2017 20:00:58 +0000 (12:00 -0800)]
RCFilters: Add class back on "show new changes" link

Removing this class broke gadgets. The class I'm adding is not the
same that was there before, but at least this way there is a class at
all.

Bug: T173614
Change-Id: Ib39b0872f09f1b229ac06fdda79b8f9813b4d249

6 years agoMerge "ApiFeedWatchlist: Use guessSectionNameFromWikiText()"
jenkins-bot [Fri, 8 Dec 2017 18:50:35 +0000 (18:50 +0000)]
Merge "ApiFeedWatchlist: Use guessSectionNameFromWikiText()"

6 years agoAdd tabindex to Special:Upload in mw-editTools
David Sn [Thu, 7 Dec 2017 12:55:10 +0000 (12:55 +0000)]
Add tabindex to Special:Upload in mw-editTools

Bug: T25238
Change-Id: I2b581667aaf0f95c9c0f189f5bf5e852c12fd3cd

6 years agoMerge "ApiQueryBase: Fix addWhereFld for PHP 7.2"
jenkins-bot [Fri, 8 Dec 2017 17:52:22 +0000 (17:52 +0000)]
Merge "ApiQueryBase: Fix addWhereFld for PHP 7.2"

6 years agoMerge "Revert replacing textarea in Special:Undelete with OOUI"
jenkins-bot [Fri, 8 Dec 2017 17:46:41 +0000 (17:46 +0000)]
Merge "Revert replacing textarea in Special:Undelete with OOUI"

6 years agoApiQueryBase: Fix addWhereFld for PHP 7.2
Brad Jorsch [Fri, 8 Dec 2017 16:46:58 +0000 (11:46 -0500)]
ApiQueryBase: Fix addWhereFld for PHP 7.2

Idfe23a07d didn't go far enough with this method, it can be passed
arbitrary other scalars in addition to null and arrays.

Bug: T182377
Change-Id: I63ec23f70d6d7ad638aa382b740ec44d0ca47f85

6 years agoMerge "Fix MWDebugTest::testAppendDebugInfoToApiResultXmlFormat"
jenkins-bot [Fri, 8 Dec 2017 17:26:35 +0000 (17:26 +0000)]
Merge "Fix MWDebugTest::testAppendDebugInfoToApiResultXmlFormat"

6 years agoRevert replacing textarea in Special:Undelete with OOUI
Albert221 [Fri, 8 Dec 2017 17:06:41 +0000 (18:06 +0100)]
Revert replacing textarea in Special:Undelete with OOUI

OOUI's MultilineTextInputWidget has max-width which
breaks page appearance (textarea is about half the width
of a 1080p monitor).

Bug: T182398
Change-Id: I6fa37afd9a3636f1b0836678240e2866b7676c29

6 years agoFix MWDebugTest::testAppendDebugInfoToApiResultXmlFormat
Brad Jorsch [Fri, 8 Dec 2017 16:55:52 +0000 (11:55 -0500)]
Fix MWDebugTest::testAppendDebugInfoToApiResultXmlFormat

When this test was added in Ifb2e392d3, it did not pass the correct
number of arguments to ApiFormatXml::recXmlPrint().

Bug: T182368
Change-Id: I63aee08307054137c6b50b6fbd271e03f6d4e45f

6 years agoAdd quotes to comment based strip markers
Phantom42 [Fri, 8 Dec 2017 14:58:04 +0000 (16:58 +0200)]
Add quotes to comment based strip markers

Bug: T180159
Change-Id: Ic9dbb8ef3948fe751d16c3963769b616b5db2fc7

6 years agoAdd overlay to list of changes
petarpetkovic [Tue, 7 Nov 2017 16:55:37 +0000 (17:55 +0100)]
Add overlay to list of changes

- Prevent users from accidentally clicking links on filtered results,
when RCFilters dropdown menu is opened, by adding overlay which closes
dropdown menu.
- Introduce MainWrapperWidget, to factor out some of the logic from
the init file.

Bug: T177626
Change-Id: Id55702ecbe6b96ee57453d4f86f20bd94a401d7c

6 years agoMerge "Fix maintenance script failure when run as a child of a FastCGI worker"
jenkins-bot [Fri, 8 Dec 2017 05:13:15 +0000 (05:13 +0000)]
Merge "Fix maintenance script failure when run as a child of a FastCGI worker"

6 years agoFix maintenance script failure when run as a child of a FastCGI worker
Tim Starling [Fri, 8 Dec 2017 04:34:23 +0000 (15:34 +1100)]
Fix maintenance script failure when run as a child of a FastCGI worker

Use PHP_SAPI==cli instead of checking $_SERVER['REQUEST_METHOD'],
since $_SERVER is populated from the environment when running HHVM in
CLI mode. Environment variables set by a FastCGI worker thus leak
through to child processes run via the shell, and cause this check to
fail.

When I wrote this check in March 2004 (r2803), I didn't know about
PHP_SAPI. Checking PHP_SAPI is quite sufficient to prevent web execution,
we use it in other places.

Bug: T111441
Change-Id: Iad8469ee25df4b0e0c2371e7975a300b1695dd8d

6 years agoMerge "Preferences: Display the default skin first in the list"
jenkins-bot [Fri, 8 Dec 2017 02:24:38 +0000 (02:24 +0000)]
Merge "Preferences: Display the default skin first in the list"

6 years agoMerge "Preferences: Sort list of skins by internal name"
jenkins-bot [Fri, 8 Dec 2017 02:20:27 +0000 (02:20 +0000)]
Merge "Preferences: Sort list of skins by internal name"

6 years agoMerge "Make travis test against PHP 7.2"
jenkins-bot [Fri, 8 Dec 2017 02:18:36 +0000 (02:18 +0000)]
Merge "Make travis test against PHP 7.2"

6 years agoMerge "Fix missing if from $wgDBssl comment"
jenkins-bot [Fri, 8 Dec 2017 02:18:13 +0000 (02:18 +0000)]
Merge "Fix missing if from $wgDBssl comment"

6 years agoFix missing if from $wgDBssl comment
Reedy [Fri, 8 Dec 2017 01:34:34 +0000 (01:34 +0000)]
Fix missing if from $wgDBssl comment

Change-Id: I46d1a87c990198090fd322da3193014487e871e6

6 years agoMerge "Add custom collation for Northern Sami"
jenkins-bot [Fri, 8 Dec 2017 00:16:41 +0000 (00:16 +0000)]
Merge "Add custom collation for Northern Sami"

6 years agoMake travis test against PHP 7.2
Reedy [Thu, 7 Dec 2017 23:10:17 +0000 (23:10 +0000)]
Make travis test against PHP 7.2

Change-Id: I3e77c383486550e116b4630b56d255ec6c043e2d

6 years agoAdd parameter for query/search to fetch augmented data.
Stanislav Malyshev [Wed, 6 Dec 2017 00:10:45 +0000 (16:10 -0800)]
Add parameter for query/search to fetch augmented data.

Bug: T182145
Change-Id: I54b50a1474b885ebe52900fd50729d6353e07807

6 years agoMerge "SpecialPages: Add ul { margin-top: 0; margin-bottom: 0 } for multicolumn"
jenkins-bot [Thu, 7 Dec 2017 22:13:22 +0000 (22:13 +0000)]
Merge "SpecialPages: Add ul { margin-top: 0; margin-bottom: 0 } for multicolumn"

6 years agoSpecialPages: Add ul { margin-top: 0; margin-bottom: 0 } for multicolumn
Fomafix [Sun, 3 Dec 2017 19:24:11 +0000 (20:24 +0100)]
SpecialPages: Add ul { margin-top: 0; margin-bottom: 0 } for multicolumn

The two-column layout has on skin Timeless currently a different top
margin on the first and on the second column. This change fixes this.

Bug: T181947
Change-Id: If995845c6cab58fe24b1d9b7859c0614db75ceb7

6 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 7 Dec 2017 21:38:17 +0000 (22:38 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I42ccf64af59b022731649b95edd0f6eff33146e6

6 years agoAdd custom collation for Northern Sami
jhsoby [Thu, 7 Dec 2017 13:47:24 +0000 (14:47 +0100)]
Add custom collation for Northern Sami

This commit adds a custom collation order for
Northern Sami ('se'). Northern Sami exists in ICU,
but the version of ICU that Wikimedia uses is a
few years old, and does *not* include Northern
Sami. It could be years before Wikimedia's production
servers use the one that includes Northern Sami (see
bug), so this is a temporary workaround to amend this
issue.

Bug: T181503
Change-Id: Ib8a48b8db99bef8ec4b05144aace5dbdcacfeded

6 years agoMerge "Changed Instances of rawParams() to plaintextParams()"
jenkins-bot [Thu, 7 Dec 2017 20:36:29 +0000 (20:36 +0000)]
Merge "Changed Instances of rawParams() to plaintextParams()"

6 years agoChanged Instances of rawParams() to plaintextParams()
ryan10145 [Thu, 7 Dec 2017 02:54:03 +0000 (21:54 -0500)]
Changed Instances of rawParams() to plaintextParams()

Bug: T182213
Change-Id: Ibf24dee5ea19092e8a38e57f34c98f513d4c9b21

6 years agoPreferences: Display the default skin first in the list
Bartosz Dziewoński [Thu, 7 Dec 2017 18:56:48 +0000 (19:56 +0100)]
Preferences: Display the default skin first in the list

Bug: T181112
Change-Id: If3de084b2a5f214f7d6d05b86daed151a23678a4

6 years agoPreferences: Sort list of skins by internal name
Bartosz Dziewoński [Thu, 7 Dec 2017 18:37:08 +0000 (19:37 +0100)]
Preferences: Sort list of skins by internal name

Sort by the internal name, so that the ordering is the same for each
display language, especially if some skin names are translated to use
a different alphabet and some are not.

Bug: T181112
Change-Id: I763150cc578e9aa70990a53895c032f17d96e97a

6 years agoMerge "Fix "Save current filter settings" menu and legend overlap"
jenkins-bot [Thu, 7 Dec 2017 18:25:38 +0000 (18:25 +0000)]
Merge "Fix "Save current filter settings" menu and legend overlap"

6 years agoSpecialListgrouprights: Fix "Namespace restrictions" header ID
Roan Kattouw [Wed, 22 Nov 2017 22:31:34 +0000 (17:31 -0500)]
SpecialListgrouprights: Fix "Namespace restrictions" header ID

* Strip the '#' from the start of the <h2>'s id attribute
* Don't parse the header message. It doesn't contain HTML, and it's used
  as plain text anyway.
* Use guessSectionNameFromStrippedText() because we are now feeding it
  plain text. Previously we were calling guessSectionNameFromWikitext()
  but passing in HTML.

Change-Id: I380c20293437dbcd3419f83ea8b7a7ee0bb504f1

6 years agoLinker: Use Parser::guessSectionNameFromStrippedText()
Roan Kattouw [Wed, 22 Nov 2017 23:11:50 +0000 (18:11 -0500)]
Linker: Use Parser::guessSectionNameFromStrippedText()

Instead of weird partial stuff.

Change-Id: Ibe7435a4723d2741e32d37d2ba67396d78d14044

6 years agoParser: Add guessSectionNameFromStrippedText() and refactor
Roan Kattouw [Wed, 22 Nov 2017 23:06:21 +0000 (18:06 -0500)]
Parser: Add guessSectionNameFromStrippedText() and refactor

Split up guessSectionNameFromWikiText() into pieces to reduce code
duplication, and provide guessSectionNameFromStrippedText() which
doesn't do link stripping.

Really these should be named guessSection*ANCHOR*From... because they
return an anchor (with encoding and a '#' prefix) instead of a section
name, but I didn't want to rename the existing one.

Also make normalizeSectionName static (it doesn't use $this) so that
guessSectionNameFromStrippedText() can be static as well.

Change-Id: I56b9dda805a51517549c5ed709f4bd747ca04577

6 years agoApiFeedWatchlist: Use guessSectionNameFromWikiText()
Roan Kattouw [Wed, 22 Nov 2017 23:03:14 +0000 (18:03 -0500)]
ApiFeedWatchlist: Use guessSectionNameFromWikiText()

Instead of reimplementing almost all of it by scraping it together from
various sources.

Change-Id: I22f0020e65e4c6c09edf030ae35fdee5bdaaf7bc

6 years agoMerge "GitInfo: Fix shell restrictions for submodules"
jenkins-bot [Thu, 7 Dec 2017 18:10:40 +0000 (18:10 +0000)]
Merge "GitInfo: Fix shell restrictions for submodules"

6 years agoMerge "WLFilters: Correctly check if RCFilters should be enabled on WL"
jenkins-bot [Thu, 7 Dec 2017 16:31:41 +0000 (16:31 +0000)]
Merge "WLFilters: Correctly check if RCFilters should be enabled on WL"

6 years agoTrack which namespaces edit conflicts are resolved in
addshore [Thu, 7 Dec 2017 15:39:18 +0000 (16:39 +0100)]
Track which namespaces edit conflicts are resolved in

This is similar to the tracking of the occourance of
edit conflicts but tracks the resolution of the conflicts.

Bug: T182011
Change-Id: I9a0c05dc921946fb6e0580b56b663783ca0b1b6e

6 years agoImageListPager: Don't stomp on $join_conds
Brad Jorsch [Thu, 7 Dec 2017 15:14:35 +0000 (10:14 -0500)]
ImageListPager: Don't stomp on $join_conds

When adding a join to the oldimage table to get counts, don't stomp on
any existing values in $join_conds. Just add the condition.

Bug: T182245
Change-Id: I4cd3332355f9974bdf35dc083be5bba537fcfb5f

6 years agoMerge "RCFilters: Set up conditional views for RCLinked"
jenkins-bot [Thu, 7 Dec 2017 14:02:29 +0000 (14:02 +0000)]
Merge "RCFilters: Set up conditional views for RCLinked"

6 years agoWLFilters: Correctly check if RCFilters should be enabled on WL
Stephane Bisson [Thu, 7 Dec 2017 13:26:02 +0000 (08:26 -0500)]
WLFilters: Correctly check if RCFilters should be enabled on WL

Side-effect of Ib933de3a3f9e876924386e80f315506f60f8af54

ChangesListSpecialPage#isStructuredFilterUiEnabled needs
to call static::checkStructuredFilterUiEnabled() to reach
the implementation from SpecialWatchlist.

Bug: T182318
Change-Id: I1e90d7e29f9e7fc5acece6466ed818210058dd2c