lhc/web/wiklou.git
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 agoRCFilters: Don't load JS or redirect when transcluding
Roan Kattouw [Thu, 14 Dec 2017 02:04:12 +0000 (18:04 -0800)]
RCFilters: Don't load JS or redirect when transcluding

We were changing the URL on every page that contained
{{Special:Recentchanges}}.

Bug: T181032
Change-Id: Ib4a0d3c1733da0bd0076aa43b91fc06939c51b75

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 ago[MCR] Break Revision into RevisionRecord and RevisionStore
daniel [Sun, 27 Aug 2017 15:29:18 +0000 (17:29 +0200)]
[MCR] Break Revision into RevisionRecord and RevisionStore

Bug: T174025
Change-Id: I140f43a6fb443b38483f41f268c906b9cea64cf7

6 years agoFix how "Live updates" behave when user logs out
petarpetkovic [Wed, 13 Dec 2017 21:16:16 +0000 (22:16 +0100)]
Fix how "Live updates" behave when user logs out

If user enables "Live updates" on one tab/browser and logs out from
different tab/browser, reload the page.

Bug: T177717
Change-Id: Ifeeb7d50eaec8f733a94a36711f1c4541af1cef9

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 agomw.rcfilters.ui.MenuSelectWidget: Always open this menu downwards
Bartosz Dziewoński [Tue, 12 Dec 2017 22:30:04 +0000 (23:30 +0100)]
mw.rcfilters.ui.MenuSelectWidget: Always open this menu downwards

Bug: T182711
Change-Id: I6da6cbe53026a4407160c056f6cb4bcb47553049

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 agoshell: Add debug logging to find binaries that aren't being restricted
Kunal Mehta [Mon, 11 Dec 2017 19:21:38 +0000 (11:21 -0800)]
shell: Add debug logging to find binaries that aren't being restricted

Assume the first part of the command is the binary, and include it directly
in the message to make grouping work on a per-binary basis. Includ the rest
of the params as log context just in case it is useful.

Change-Id: Ibfff7b1fee083efffae833b9bfa71ae9806c1bbd

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 agoRequire indentation of CASE statements in PHP code
Huji Lee [Mon, 11 Dec 2017 03:07:50 +0000 (22:07 -0500)]
Require indentation of CASE statements in PHP code

Bug: T182546
Change-Id: I91a9555893a08e4ec58da97c6cc4d1e70000ff6b

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 agoshell: Run firejail inside limit.sh, make NO_EXECVE work
Kunal Mehta [Sat, 9 Dec 2017 10:11:02 +0000 (02:11 -0800)]
shell: Run firejail inside limit.sh, make NO_EXECVE work

NO_EXECVE doesn't work because limit.sh needs to execute the main
command, and does so through the execve syscall. Eventually we should be
able to replace limit.sh with firejail functionality entirely (T179021),
but in the meantime we can run firejail inside limit.sh.

We also need to stop firejail from running the command in a bash shell
via --shell=none, since that shell would also use the execve syscall.

Bug: T182489
Change-Id: I3fc8ad2f9e5eb5bf13b49d0bccd6094668a5ec55

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 agoshell: Add NO_LOCALSETTINGS restriction
Kunal Mehta [Thu, 7 Dec 2017 18:46:45 +0000 (10:46 -0800)]
shell: Add NO_LOCALSETTINGS restriction

Most secret information like database passwords are kept in LocalSettings.php,
so blacklisting that file by default would take away a lot of information an
attacker would want.

Since most commands shouldn't need to read the PHP configuration, add it to
RESTRICT_DEFAULT. People can still use:
 $cmd->restrict( Shell::RESTRICT_DEFAULT & ~Shell::NO_LOCALSETTINGS );

if they need to still access LocalSettings.php

Bug: T182484
Change-Id: I4032e2706e808e9b819e92a06eff536ccf043388

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 agoSplit limit report out of Parser::parse()
Tim Starling [Fri, 8 Dec 2017 05:33:05 +0000 (16:33 +1100)]
Split limit report out of Parser::parse()

It was 100 lines. Also update a few nearby comments. The one about just
handling <nowiki> sections was actually written by Lee, and is
hilariously outdated now.

Change-Id: I12ee2a7e488a3c787b36d3a457c6166bbbb46aff

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"