lhc/web/wiklou.git
5 years agoMerge "Minor cleanup of languages/ConverterRule.php"
jenkins-bot [Wed, 24 Oct 2018 20:59:58 +0000 (20:59 +0000)]
Merge "Minor cleanup of languages/ConverterRule.php"

5 years agoMerge "Tidy Message::parseAsBlock() by enabling tidy in MessageCache"
jenkins-bot [Wed, 24 Oct 2018 20:35:06 +0000 (20:35 +0000)]
Merge "Tidy Message::parseAsBlock() by enabling tidy in MessageCache"

5 years agoMerge "extraParserTests.txt: Fix typo"
jenkins-bot [Wed, 24 Oct 2018 20:35:01 +0000 (20:35 +0000)]
Merge "extraParserTests.txt: Fix typo"

5 years agoMerge "RELEASE-NOTES-1.32: Add all new/changed libraries in composer.json"
jenkins-bot [Wed, 24 Oct 2018 18:03:41 +0000 (18:03 +0000)]
Merge "RELEASE-NOTES-1.32: Add all new/changed libraries in composer.json"

5 years agoMerge "Remove deprecated "Parsoid v1 API" compatibility thunks"
jenkins-bot [Wed, 24 Oct 2018 17:45:34 +0000 (17:45 +0000)]
Merge "Remove deprecated "Parsoid v1 API" compatibility thunks"

5 years agoMerge "HTMLForm: Remove parameters 'notice', 'notice-messages', 'notice-message'"
jenkins-bot [Wed, 24 Oct 2018 17:14:34 +0000 (17:14 +0000)]
Merge "HTMLForm: Remove parameters 'notice', 'notice-messages', 'notice-message'"

5 years agoRemove deprecated "Parsoid v1 API" compatibility thunks
C. Scott Ananian [Tue, 25 Sep 2018 19:44:33 +0000 (15:44 -0400)]
Remove deprecated "Parsoid v1 API" compatibility thunks

These have been deprecated since MW 1.26, and were hard deprecated
in MW 1.32.

Bug: T205029
Change-Id: I387794ecceec8aec1bd01923a71673aa2ddf4282

5 years agoList Partial Block details in ApiQueryBlocks and ApiQueryUserinfo.
David Barratt [Tue, 26 Jun 2018 23:12:05 +0000 (19:12 -0400)]
List Partial Block details in ApiQueryBlocks and ApiQueryUserinfo.

The ApiQueryBlocks and ApiQueryUserinfo endpoints will now return whether or not the block is
sitewide or partial. Partial block restrictions can be returned with ApiQueryBlocks.

Bug: T197141
Change-Id: I76eb4cac4dc989c621a00a39996faebd0eb9892c

5 years agoUpdate Special:BlockList to present Partial Block details from the database
David Barratt [Tue, 19 Jun 2018 19:57:34 +0000 (15:57 -0400)]
Update Special:BlockList to present Partial Block details from the database

The Special:BlockList page will be updated to show details from the Partial
Block within the "Block parameters" column. The format of the column will
change to make the details more readable.

Bug: T197143
Change-Id: Ibd79b049d93e427c2d541f8ef93005847482ef59

5 years agoFollow-up cfa70ea6d0: Fix rebase artefact, also remove preference listing
James D. Forrester [Wed, 24 Oct 2018 14:58:47 +0000 (07:58 -0700)]
Follow-up cfa70ea6d0: Fix rebase artefact, also remove preference listing

Change-Id: Ia146f013beba2c82a8f76355b49a4192fbd0ed3b

5 years agoMinor cleanup of languages/ConverterRule.php
Alangi Derick [Tue, 23 Oct 2018 13:38:42 +0000 (14:38 +0100)]
Minor cleanup of languages/ConverterRule.php

Remove extra space before comma and fix
minor issues with line comments.

Change-Id: I0306fe172eaa29ab504394f0a80b8652089a809c

5 years agoMerge "Remove old "bulletin board style toolbar" from core"
jenkins-bot [Wed, 24 Oct 2018 05:30:14 +0000 (05:30 +0000)]
Merge "Remove old "bulletin board style toolbar" from core"

5 years agoMerge "Enforce partial blocks"
jenkins-bot [Wed, 24 Oct 2018 03:15:39 +0000 (03:15 +0000)]
Merge "Enforce partial blocks"

5 years agoMerge "Add partial block details to block-log entries."
jenkins-bot [Wed, 24 Oct 2018 01:45:25 +0000 (01:45 +0000)]
Merge "Add partial block details to block-log entries."

5 years agoMerge "Update Special:Block to set Partial Blocks"
jenkins-bot [Wed, 24 Oct 2018 01:45:18 +0000 (01:45 +0000)]
Merge "Update Special:Block to set Partial Blocks"

5 years agoMerge "TitlesMultiselectWidget: Add a widget that allows selection of multiple titles"
jenkins-bot [Wed, 24 Oct 2018 01:35:54 +0000 (01:35 +0000)]
Merge "TitlesMultiselectWidget: Add a widget that allows selection of multiple titles"

5 years agoMerge "Add block restriction classes"
jenkins-bot [Wed, 24 Oct 2018 01:28:36 +0000 (01:28 +0000)]
Merge "Add block restriction classes"

5 years agoEnforce partial blocks
Dayllan Maza [Mon, 27 Aug 2018 01:45:18 +0000 (21:45 -0400)]
Enforce partial blocks

Enforce partial blocks and display a slightly different block
notice depending on if the block is sitewide or not

Bug: T197117
Depends-On: I675316dddf272fd0d6172ecad3882160752bf780
Change-Id: I8a3635a4a04a33912eb139b7b13c4bd874183d31

5 years agoFix slow query counting by unindexed field ar_page_id
Tim Starling [Wed, 24 Oct 2018 00:21:28 +0000 (17:21 -0700)]
Fix slow query counting by unindexed field ar_page_id

Bug: T207530
Change-Id: I81a70ca03fd219d2e96b17714645d9cc4f99b3b9

5 years agoAdd partial block details to block-log entries.
Dayllan Maza [Wed, 19 Sep 2018 05:51:49 +0000 (01:51 -0400)]
Add partial block details to block-log entries.

Block information needs to be more detailed if a block is not
sitewide. With this change, page restrictions will be visible
as part of the block information in Special:Contributions,
Special:Block, and Special:Log and via API

Bug: T197108
Change-Id: I5d2ef606f709bdd60bf52e2a048890b0f6360fca

5 years agoUpdate Special:Block to set Partial Blocks
David Barratt [Mon, 27 Aug 2018 22:19:37 +0000 (18:19 -0400)]
Update Special:Block to set Partial Blocks

Make the necessary UI changes to Special:Block in order to set/update
partial blocks.

Bug: T197109
Change-Id: Ib3067824b5dcbdd893ab1f165d169a35d0716cb2

5 years agoTitlesMultiselectWidget: Add a widget that allows selection of multiple titles
Moriel Schottlender [Thu, 30 Aug 2018 00:33:32 +0000 (17:33 -0700)]
TitlesMultiselectWidget: Add a widget that allows selection of multiple titles

Add the widget in both PHP and JS for OOUI, and into HTMLForm
definitions.

In JS, the widget uses the engine from mw.widgets.TitleWidget
with the async support from OO.ui.mixin.RequestManager.

The PHP version provides a textarea, like UsersMultiselectWidget.php
which is then infused if JS is available.

Also, add highlightSearchQuery option for TitleWidget to allow for
not highlighting the partial search query the user typed in, if the
UI requires it. This option (highlighting partial result) is already
optional in the TitleOptionWidget, so this config exposes that
optionality in the TitleWidget widget for its menu children.

Notes:

HTMLTitlesMultiselectField is a duplication of HTMLUsersMultiselectField
except for:
- The configuration variable changed to 'titles' (from 'users')
- OOUI modules were adjusted for the TitlesMultiselectWidget
- The PHP version instantiates a MediaWiki\Widget\TitlesMultiselectWidget

TitlesMultiselectWidget is a duplication of UsersMultiselectWidget
except for:
- $usersArray was renamed to $titlesArray
- getJavascriptClassName returns the correct js class for
  mw.widgets.TitlesMultiselectWidget for infusion.

Bug: T197109
Depends-On: I675316dddf272fd0d6172ecad3882160752bf780
Change-Id: Ie96947a35f70b76731e16ae5b85de815dfa4a8ce

5 years agoAdd block restriction classes
Dayllan Maza [Thu, 16 Aug 2018 04:55:55 +0000 (00:55 -0400)]
Add block restriction classes

Partial blocks logic will be used in multiple places. This
classes will group block restriction functionality to avoid
code duplication

Bug: T202036
Change-Id: I675316dddf272fd0d6172ecad3882160752bf780

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 23 Oct 2018 19:53:55 +0000 (21:53 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: If085dbc6560e9580ac86ddb42a4f730d47f1e605

5 years agoRELEASE-NOTES-1.32: Add all new/changed libraries in composer.json
James D. Forrester [Tue, 23 Oct 2018 17:56:52 +0000 (10:56 -0700)]
RELEASE-NOTES-1.32: Add all new/changed libraries in composer.json

Change-Id: I50b47470b531b04642913b36dc7b4282476df6db

5 years agoMerge "Remove fixed phpcs:ignore"
jenkins-bot [Tue, 23 Oct 2018 18:54:35 +0000 (18:54 +0000)]
Merge "Remove fixed phpcs:ignore"

5 years agoRemove fixed phpcs:ignore
Umherirrender [Tue, 23 Oct 2018 18:35:00 +0000 (20:35 +0200)]
Remove fixed phpcs:ignore

Follow-Up: I418345870e25fa37df0195ddc74193b54fe6d2a5
Change-Id: I0b3a546455c2f35d3aeadbdd31a07bdb1958a74c

5 years agoRELEASE-NOTES-1.32: Add all new/changed libraries in resources/lib
James D. Forrester [Tue, 23 Oct 2018 17:52:51 +0000 (10:52 -0700)]
RELEASE-NOTES-1.32: Add all new/changed libraries in resources/lib

Change-Id: I1dffba3bb31850e1a2f1529c49329ba7c9c7d4a7

5 years agofix stubs dump query to use straight join
Ariel T. Glenn [Tue, 23 Oct 2018 15:18:47 +0000 (18:18 +0300)]
fix stubs dump query to use straight join

regression from a combination of
https://gerrit.wikimedia.org/r/#/c/mediawiki/core/+/380669/
and
https://gerrit.wikimedia.org/r/#/c/mediawiki/core/+/459885/

We have to do a straight join for all stubs, since they all
now order revisions by rev_id after deployment of the second
patchset above.

Bug: T207628
Change-Id: I4d2a311c14c66d4813eb9fc3c587fa3ddb958454

5 years agoMerge "Fix warnings in SpecialEmailuser"
jenkins-bot [Tue, 23 Oct 2018 05:38:22 +0000 (05:38 +0000)]
Merge "Fix warnings in SpecialEmailuser"

5 years agoMerge "Make Language::hasVariant() more strict"
jenkins-bot [Mon, 22 Oct 2018 21:50:06 +0000 (21:50 +0000)]
Merge "Make Language::hasVariant() more strict"

5 years agoMake Language::hasVariant() more strict
C. Scott Ananian [Fri, 19 Oct 2018 19:00:52 +0000 (15:00 -0400)]
Make Language::hasVariant() more strict

In d59f27aeab08b171e5ab6a081e763a4cad0bca04 we made
LanguageConverter::validateVariant() try harder to convert a variant
into an acceptable MediaWiki-internal form, looking at deprecated
codes and BCP 47 aliases.  However, this misled Language::hasVariant()
into thinking that bogus names (like all-uppercase strings) were
acceptable variant names, which then led exceptions when they were
passed to the various conversion methods.

This is a belt-and-suspenders patch for T207433 -- in that case we
shouldn't have created a Language object with code 'sr-cyrl' in the
first place, but once one was created we shouldn't have tried to
ask LanguageSr to convert texts to 'sr-cyrl'.  The latter problem
is fixed by this patch.

Bug: T207433
Change-Id: Id993bc7989144b5031a551662e8e492bd23f698a

5 years agoFix warnings in SpecialEmailuser
Amir Sarabadani [Mon, 22 Oct 2018 19:59:35 +0000 (21:59 +0200)]
Fix warnings in SpecialEmailuser

Change-Id: I527f8891f3821e0e8a4c65db97fdbe8ba5dd3e76

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 22 Oct 2018 19:53:57 +0000 (21:53 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Id5f41040e7924ee2a377f5bb47999ff8a5987831

5 years agoMerge "Remove UtfNormal class"
jenkins-bot [Mon, 22 Oct 2018 19:43:21 +0000 (19:43 +0000)]
Merge "Remove UtfNormal class"

5 years agoMerge "Hard-deprecate LegacyHookPreAuthenticationProvider class"
jenkins-bot [Mon, 22 Oct 2018 19:33:56 +0000 (19:33 +0000)]
Merge "Hard-deprecate LegacyHookPreAuthenticationProvider class"

5 years agoHTMLForm: Remove parameters 'notice', 'notice-messages', 'notice-message'
Bartosz Dziewoński [Fri, 17 Aug 2018 21:07:52 +0000 (23:07 +0200)]
HTMLForm: Remove parameters 'notice', 'notice-messages', 'notice-message'

Bug: T197179
Change-Id: I911cabc1e1e1c2abb8e91a55c05eaa1c76134087

5 years agoRemove UtfNormal class
Reedy [Thu, 31 May 2018 23:37:07 +0000 (00:37 +0100)]
Remove UtfNormal class

Change-Id: I1cab16d95ed888b482d23f73577c988700e0bca4

5 years agoHard-deprecate LegacyHookPreAuthenticationProvider class
Gergő Tisza [Wed, 10 Oct 2018 01:21:54 +0000 (18:21 -0700)]
Hard-deprecate LegacyHookPreAuthenticationProvider class

The hooks that used to be called by this class will be removed in
I24d6fa963. The only reason to keep this class around is that
someone might have added it to $wgAuthManagerConfig so removing
it would trigger class lookup failures, so make sure any use
of the class triggers a deprecation warning.

Change-Id: I9755288eda7461ecf3dcd35de2081fbb3eb04ae3

5 years agoUpdate wikimedia/base-convert to 2.0.0
Kunal Mehta [Mon, 22 Oct 2018 18:17:40 +0000 (11:17 -0700)]
Update wikimedia/base-convert to 2.0.0

The breaking change is dropping PHP 5 support.

Bug: T194052
Depends-On: I4de5c0ab827c96e2cef4e0b2cd7d10a109393668
Change-Id: If39ea5274bfa3c9b0ce18f9a43a27445a90ea3fc

5 years agoMerge "Remove untidy wrapper from ImagePage::makeMetadataTable()"
jenkins-bot [Mon, 22 Oct 2018 17:39:12 +0000 (17:39 +0000)]
Merge "Remove untidy wrapper from ImagePage::makeMetadataTable()"

5 years agoMerge "Fix bad join on ChangeTag subquery"
jenkins-bot [Mon, 22 Oct 2018 17:38:02 +0000 (17:38 +0000)]
Merge "Fix bad join on ChangeTag subquery"

5 years agoMerge "Include BCP 47 codes in $wgDummyLanguageCodes, but deprecate it"
jenkins-bot [Mon, 22 Oct 2018 17:13:50 +0000 (17:13 +0000)]
Merge "Include BCP 47 codes in $wgDummyLanguageCodes, but deprecate it"

5 years agoMerge "Deprecate $wgFixArabicUnicode / $wgFixMalayalamUnicode"
jenkins-bot [Mon, 22 Oct 2018 17:08:50 +0000 (17:08 +0000)]
Merge "Deprecate $wgFixArabicUnicode / $wgFixMalayalamUnicode"

5 years agoMerge "Follow-up T174035: Wrap inline ternary in brackets to make phpcs happy"
jenkins-bot [Mon, 22 Oct 2018 16:47:47 +0000 (16:47 +0000)]
Merge "Follow-up T174035: Wrap inline ternary in brackets to make phpcs happy"

5 years agoRemove untidy wrapper from ImagePage::makeMetadataTable()
C. Scott Ananian [Wed, 17 Oct 2018 14:47:35 +0000 (10:47 -0400)]
Remove untidy wrapper from ImagePage::makeMetadataTable()

Replace a fragile <div> wrapper with the robust
OutputPage::wrapWikiTextAsInterface() wrapper.

Bug: T205624
Change-Id: I0a1ba0da6af97f0233afdd8ba7202abed0998419

5 years agoMerge "Remove Language::truncate(), deprecated in MW 1.31"
jenkins-bot [Mon, 22 Oct 2018 16:33:57 +0000 (16:33 +0000)]
Merge "Remove Language::truncate(), deprecated in MW 1.31"

5 years agoFollow-up T174035: Wrap inline ternary in brackets to make phpcs happy
James D. Forrester [Mon, 22 Oct 2018 16:23:22 +0000 (09:23 -0700)]
Follow-up T174035: Wrap inline ternary in brackets to make phpcs happy

Bug: T203805
Change-Id: I418345870e25fa37df0195ddc74193b54fe6d2a5

5 years agoMerge "Rename WebInstallerOutput::addWikiTextInterface"
jenkins-bot [Mon, 22 Oct 2018 15:48:46 +0000 (15:48 +0000)]
Merge "Rename WebInstallerOutput::addWikiTextInterface"

5 years agoMerge "Fix comment handling on image upload or deletion"
jenkins-bot [Mon, 22 Oct 2018 15:08:42 +0000 (15:08 +0000)]
Merge "Fix comment handling on image upload or deletion"

5 years agoFix bad join on ChangeTag subquery
Amir Sarabadani [Mon, 22 Oct 2018 13:53:29 +0000 (15:53 +0200)]
Fix bad join on ChangeTag subquery

Bug: T207313
Change-Id: Iae6440630a533dfbcee3ccec34a9f231d3d013b5

5 years agoMerge "Replace http://be-x-old. by https://be-tarask."
jenkins-bot [Mon, 22 Oct 2018 10:19:12 +0000 (10:19 +0000)]
Merge "Replace be-x-old. by https://be-tarask."

5 years agoRename WebInstallerOutput::addWikiTextInterface
C. Scott Ananian [Mon, 22 Oct 2018 03:00:14 +0000 (23:00 -0400)]
Rename WebInstallerOutput::addWikiTextInterface

Follow up to I89f3398cffa771afcd5a33cfd11eb8510af3e7f7: this patch
was intended to mirror a new method added to OutputPage in
Ia58910164baaca608cea3b24333b7d13ed773339 but the bikeshed was painted
a slightly different color before the OutputPage patch was merged, and
somehow this patch wasn't changed to match.  The `addWikiTextInterface`
name was never included in a released MW version, so we don't need to
deprecate it, just fix it.

Change-Id: I636cb0ea0f9631c4c5e2bc118f479aec76d2b231

5 years agoMerge "Use OutputPage::wrapWikiTextAsInterface() to add safe <div> wrappers"
jenkins-bot [Mon, 22 Oct 2018 02:00:35 +0000 (02:00 +0000)]
Merge "Use OutputPage::wrapWikiTextAsInterface() to add safe <div> wrappers"

5 years agoDeprecate $wgFixArabicUnicode / $wgFixMalayalamUnicode
C. Scott Ananian [Fri, 19 Oct 2018 15:06:15 +0000 (11:06 -0400)]
Deprecate $wgFixArabicUnicode / $wgFixMalayalamUnicode

These were introduced in MW 1.17 and are always true in production.

They were useful to allow folks to defer title conversion, but it's
been a long time now.  We don't need to make this optional any more.

Change-Id: I65dcfe80dc3e1dfeb4d63924a8928655e012a20c

5 years agoMerge "Use OutputPage::addWikiTextAsInterface() instead of untidy addWikiText()"
jenkins-bot [Mon, 22 Oct 2018 01:49:58 +0000 (01:49 +0000)]
Merge "Use OutputPage::addWikiTextAsInterface() instead of untidy addWikiText()"

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 21 Oct 2018 20:11:24 +0000 (22:11 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I12979463cbff3cd1b6ed46ffe3a7839be0c35605

5 years agoMerge "Equalization translations for Serbian"
jenkins-bot [Sun, 21 Oct 2018 19:45:00 +0000 (19:45 +0000)]
Merge "Equalization translations for Serbian"

5 years agoMerge "Bump release notes for RemexHtml upgrade"
jenkins-bot [Sun, 21 Oct 2018 19:11:33 +0000 (19:11 +0000)]
Merge "Bump release notes for RemexHtml upgrade"

5 years agoBump release notes for RemexHtml upgrade
Kunal Mehta [Sun, 21 Oct 2018 18:48:59 +0000 (11:48 -0700)]
Bump release notes for RemexHtml upgrade

Change-Id: I43190e3dc8c74da4e226e173941fb6bdce454a02

5 years agoMerge "Remove mention of $wgHTCPMulticastRouting, not present since MW 1.24"
jenkins-bot [Sun, 21 Oct 2018 18:03:42 +0000 (18:03 +0000)]
Merge "Remove mention of $wgHTCPMulticastRouting, not present since MW 1.24"

5 years agoMerge "Upgrade wikimedia/remex-html to 2.0.1"
jenkins-bot [Sun, 21 Oct 2018 17:59:13 +0000 (17:59 +0000)]
Merge "Upgrade wikimedia/remex-html to 2.0.1"

5 years agoEqualization translations for Serbian
Zoranzoki21 [Sun, 14 Oct 2018 12:35:10 +0000 (14:35 +0200)]
Equalization translations for Serbian

Change-Id: I36a214181d24610fa0224d51223b1789d93be777

5 years agoMerge "Output Done! at end of resetUserEmail.php"
jenkins-bot [Sun, 21 Oct 2018 17:33:26 +0000 (17:33 +0000)]
Merge "Output Done! at end of resetUserEmail.php"

5 years agoSECURITY: Don't allow loading unprotected JS files
Brian Wolff [Thu, 27 Sep 2018 11:42:37 +0000 (11:42 +0000)]
SECURITY: Don't allow loading unprotected JS files

This is meant to protect against malicious people while avoiding
annoying good users as much as possible. We may want to restrict
this further in the future, but that's something that can be discussed
in the normal way.

Bug: T194204
Bug: T113042
Bug: T112937
Change-Id: I27e049bae78b5c0f63b10f454b740cb1dc394813

5 years agoMerge "Add .vscode to .gitignore file"
jenkins-bot [Sun, 21 Oct 2018 15:45:14 +0000 (15:45 +0000)]
Merge "Add .vscode to .gitignore file"

5 years agoAdd .vscode to .gitignore file
Zoranzoki21 [Sun, 21 Oct 2018 13:47:48 +0000 (15:47 +0200)]
Add .vscode to .gitignore file

.vscode is place of configurations for Visual Studio Code.

Change-Id: Ie066b9773af757181f325c090af1af68d4954236

5 years agoinstaller: Don't link to the obsolete "Extension Matrix" page
Zoranzoki21 [Sat, 29 Sep 2018 00:06:23 +0000 (03:06 +0300)]
installer: Don't link to the obsolete "Extension Matrix" page

Bug: T205765
Change-Id: Id1ba965c7c06ce03611ba745421dc982f5393f8c

5 years agoUpgrade wikimedia/remex-html to 2.0.1
Kunal Mehta [Sun, 21 Oct 2018 05:12:14 +0000 (22:12 -0700)]
Upgrade wikimedia/remex-html to 2.0.1

Bug: T207088
Depends-On: Id4bbbdb68678c37ec4aa84d519516199bb800393
Change-Id: Ia5822f5f283f5d935c78402ce71e2d010e9a7a91

5 years agoOutput Done! at end of resetUserEmail.php
Reedy [Sat, 20 Oct 2018 22:48:55 +0000 (23:48 +0100)]
Output Done! at end of resetUserEmail.php

Change-Id: I8e5572f0a60e74eec300031e75b79ee71ffc008d

5 years agoMerge "Don't pass a MailAddress pass the email to mail()"
jenkins-bot [Sat, 20 Oct 2018 20:34:23 +0000 (20:34 +0000)]
Merge "Don't pass a MailAddress pass the email to mail()"

5 years agoMerge "Fix typo in includes/watcheditem/WatchItemStoreInterface.php"
jenkins-bot [Sat, 20 Oct 2018 20:16:15 +0000 (20:16 +0000)]
Merge "Fix typo in includes/watcheditem/WatchItemStoreInterface.php"

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 20 Oct 2018 20:00:02 +0000 (22:00 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I508681048d303f4814be18462689688b93443813

5 years agoFix typo in includes/watcheditem/WatchItemStoreInterface.php
Alangi Derick [Fri, 19 Oct 2018 20:21:35 +0000 (21:21 +0100)]
Fix typo in includes/watcheditem/WatchItemStoreInterface.php

Comment didn't quite make sense, fixing the typo by removing "the"
made it a little better and clear.

Change-Id: I33abdb3489ab704d50722a8df6acb402592908b2

5 years agoReplace http://be-x-old. by https://be-tarask.
Fomafix [Sat, 20 Oct 2018 18:49:56 +0000 (20:49 +0200)]
Replace http://be-x-old. by https://be-tarask.

Change-Id: I9a3f20bf3caaf9a0529f66f85953d56b8a34067e

5 years agoDon't pass a MailAddress pass the email to mail()
Reedy [Sat, 20 Oct 2018 12:37:15 +0000 (13:37 +0100)]
Don't pass a MailAddress pass the email to mail()

Bug: T207541
Change-Id: I1516023907e9773cb093010c6b67279f695abb1a

5 years agoInclude IP address in "Login for $1 succeeded" log entry
Kunal Mehta [Sat, 20 Oct 2018 12:35:22 +0000 (05:35 -0700)]
Include IP address in "Login for $1 succeeded" log entry

Bug: T207540
Change-Id: Iab4f2f2ddc8e64ead2f33356d03fa7beed399415

5 years agoMerge "Convert Special:EmailUser to use OOUIHTMLForm"
jenkins-bot [Fri, 19 Oct 2018 23:14:32 +0000 (23:14 +0000)]
Merge "Convert Special:EmailUser to use OOUIHTMLForm"

5 years agoMerge "RCFilters: Fix highlight circles for unseen changes"
jenkins-bot [Fri, 19 Oct 2018 22:58:05 +0000 (22:58 +0000)]
Merge "RCFilters: Fix highlight circles for unseen changes"

5 years agoMerge "Deprecate $wgSquidPurgeUseHostHeader"
jenkins-bot [Fri, 19 Oct 2018 21:44:29 +0000 (21:44 +0000)]
Merge "Deprecate $wgSquidPurgeUseHostHeader"

5 years agoMerge "Deprecate $wgUseESI"
jenkins-bot [Fri, 19 Oct 2018 21:43:27 +0000 (21:43 +0000)]
Merge "Deprecate $wgUseESI"

5 years agoMerge "objectcache: avoid using heavily time-drifted microtime() values in WAN cache"
jenkins-bot [Fri, 19 Oct 2018 20:55:47 +0000 (20:55 +0000)]
Merge "objectcache: avoid using heavily time-drifted microtime() values in WAN cache"

5 years agoMerge "During special page transclusion, save and restore context's WikiPage too"
jenkins-bot [Fri, 19 Oct 2018 20:55:41 +0000 (20:55 +0000)]
Merge "During special page transclusion, save and restore context's WikiPage too"

5 years agoRCFilters: Fix highlight circles for unseen changes
Roan Kattouw [Fri, 19 Oct 2018 20:38:44 +0000 (13:38 -0700)]
RCFilters: Fix highlight circles for unseen changes

These are supposed to be unfilled, but the CSS wasn't being applied
because it didn't have -color in the class name. Put it back into the
&-color block where it belongs.

Bug: T207472
Change-Id: Ic517b9a1a0e8e95015f5b2bd3517c36bff3b20e8
Follows-Up: I76fec57ff237ba02afefcea28916d8348bac9b0e

5 years agoextraParserTests.txt: Fix typo
Bartosz Dziewoński [Fri, 19 Oct 2018 19:33:38 +0000 (21:33 +0200)]
extraParserTests.txt: Fix typo

Change-Id: I219d22fd572abcec480d900a71d67a6cf285dd87

5 years agoDuring special page transclusion, save and restore context's WikiPage too
Bartosz Dziewoński [Wed, 17 Oct 2018 23:23:27 +0000 (01:23 +0200)]
During special page transclusion, save and restore context's WikiPage too

Setting the Title by calling setTitle clears the WikiPage, and the
next time getWikiPage() is called, it will be lazy-initialized to a
different instance of WikiPage.

This is mostly okay (the behavior has been like this for years and no
one noticed any problems), but it turns out that some extensions
(ConfirmEdit) use custom properties on the WikiPage object to pass
data between different hooks, which are lost when it's re-initialized.

Bug: T207065
Change-Id: I2881895f337bcfb1f86d5fc5a994fa9b0dcc768a

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 19 Oct 2018 20:02:41 +0000 (22:02 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ic7961893e9cd4f67fdfdeb36c00ce414444c3f15

5 years agoRCFilters: Fix completely broken highlight circles
Roan Kattouw [Fri, 19 Oct 2018 19:18:35 +0000 (12:18 -0700)]
RCFilters: Fix completely broken highlight circles

- Correct highlights class name (mw-rcfilters-ui-highlights, not
  mw-rcfilters-ui-changesListWrapperWidget-highlights)
- Remove -circle class suffix that the circles don't actually have
- Go back to using float: right; instead of text-align: right;
  (you can't use text-align for things that aren't inline)
- For seen/unseen watched items, apply circle mixin to the actual
  circles themselves, not their parents

Bug: T207472
Change-Id: Iade1af4299826a4e8a2108425ace9a406f0aa8cb
Follows-Up: I76fec57ff237ba02afefcea28916d8348bac9b0e

5 years agoInclude BCP 47 codes in $wgDummyLanguageCodes, but deprecate it
C. Scott Ananian [Fri, 19 Oct 2018 14:40:38 +0000 (10:40 -0400)]
Include BCP 47 codes in $wgDummyLanguageCodes, but deprecate it

Add BCP 47 codes to $wgDummyLanguageCodes to ensure that
Language::factory() will return a valid MediaWiki-internal code if
given a BCP 47 alias.  We will want to make $wgDummyLanguageCodes a
private property of LanguageCode eventually, but let's start with
removing it from user configuration.

Setting $wgDummyLanguageCodes in LocalSettings.php has been deprecated
since 1.29.  Hard deprecate adding entries to $wgDummyLanguageCodes so
that we can eventually remove manual overrides from user
configuration.

This is a follow-up to 48ab87d0a37da80c2e2ae3a20f645548d2a787f9,
which described the various categories of codes, and
21ead7a98d1a103b77f1e3ba29a85493782d398b, which added the correct
BCP 47 mappings.

Bug: T207433
Change-Id: I9f6dda3360f79ab65f6392f44c98926588d851c8

5 years agoRemove mention of $wgHTCPMulticastRouting, not present since MW 1.24
C. Scott Ananian [Fri, 19 Oct 2018 15:42:26 +0000 (11:42 -0400)]
Remove mention of $wgHTCPMulticastRouting, not present since MW 1.24

Change-Id: I04ba9761e98ac4cf177cd2581f0304206cd4365c

5 years agoDeprecate $wgSquidPurgeUseHostHeader
C. Scott Ananian [Fri, 19 Oct 2018 15:40:17 +0000 (11:40 -0400)]
Deprecate $wgSquidPurgeUseHostHeader

This header supports Squid in forward-proxy mode using HTTP/1.0
HTTP headers.  It is not used in production.

Change-Id: I99646c9c5519bd55b3d4988306e379f89d413bdc

5 years agoDeprecate $wgUseESI
C. Scott Ananian [Fri, 19 Oct 2018 15:36:44 +0000 (11:36 -0400)]
Deprecate $wgUseESI

This was an experimental Squid 3 feature which is now defunct.

Change-Id: I799d87309b0dc77100900b75040fa9b85a35fc9a

5 years agoMerge "Watchlist: Commit after each batch watchlist insertion and removal"
jenkins-bot [Fri, 19 Oct 2018 15:23:20 +0000 (15:23 +0000)]
Merge "Watchlist: Commit after each batch watchlist insertion and removal"

5 years agoMerge "Add docs and minor cleanup in PHPVersionCheck.php"
jenkins-bot [Thu, 18 Oct 2018 22:04:45 +0000 (22:04 +0000)]
Merge "Add docs and minor cleanup in PHPVersionCheck.php"

5 years agoFix comment handling on image upload or deletion
Brad Jorsch [Thu, 18 Oct 2018 21:12:44 +0000 (17:12 -0400)]
Fix comment handling on image upload or deletion

Before Iab5f5215, the call to CommentStore::insertWithTempTable() also
happened to populate image_comment_temp for the later call to
insertSelect() when moving rows from the image table to oldimage or
filearchive. There was nothing in the image table itself that needed
updating.

In that change those calls were changed to CommentStore::insert(), but
it was missed that in that case we do have to update the image table
itself.

Bug: T207419
Change-Id: I26c417c9ab8a9160a7c7ec548ffdfabf17f01980

5 years agoAdd COALESCE for image deletion and imgcomment_description_id
Brad Jorsch [Thu, 18 Oct 2018 20:51:42 +0000 (16:51 -0400)]
Add COALESCE for image deletion and imgcomment_description_id

I have no idea why this suddenly started raising an error rather than it
doing so since February (I0dd7258fe). But this should fix it.

Bug: T207419
Change-Id: Id97e1c7c2655d90928c777bc3377e5ea23f49f6b

5 years agoMerge "Localisation updates from https://translatewiki.net."
jenkins-bot [Thu, 18 Oct 2018 20:41:25 +0000 (20:41 +0000)]
Merge "Localisation updates from https://translatewiki.net."

5 years agoMerge "Add ICU mapping for versions 62 and 63"
jenkins-bot [Thu, 18 Oct 2018 20:15:50 +0000 (20:15 +0000)]
Merge "Add ICU mapping for versions 62 and 63"

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 18 Oct 2018 20:15:04 +0000 (22:15 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Idb8c9ff1533aa8470455dba149333a6212c509a5

5 years agoMerge "Sort allowed log actions when displaying"
jenkins-bot [Thu, 18 Oct 2018 19:34:20 +0000 (19:34 +0000)]
Merge "Sort allowed log actions when displaying"