lhc/web/wiklou.git
5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 19 Jan 2019 20:53:48 +0000 (21:53 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I9718a0adfc58858c00092a962f7d592cdc6f55db

5 years agoMerge "TablePager: Unify `padding` with `.wikitable`"
jenkins-bot [Sat, 19 Jan 2019 01:40:29 +0000 (01:40 +0000)]
Merge "TablePager: Unify `padding` with `.wikitable`"

5 years agoMerge "Reduce selector specificity of `.wikitable`"
jenkins-bot [Sat, 19 Jan 2019 01:13:07 +0000 (01:13 +0000)]
Merge "Reduce selector specificity of `.wikitable`"

5 years agoTablePager: Unify `padding` with `.wikitable`
Volker E [Sat, 19 Jan 2019 01:01:53 +0000 (17:01 -0800)]
TablePager: Unify `padding` with `.wikitable`

This should be at best temporarily until `.mw-datatable` gets same
`padding`.

Bug: T214208
Change-Id: Ib86808803fd6fa41704e7a69687a1ab41ef3c43d

5 years agoMerge "registration: Add @codeCoverageIgnore for statement that can't be covered"
jenkins-bot [Sat, 19 Jan 2019 00:47:00 +0000 (00:47 +0000)]
Merge "registration: Add @codeCoverageIgnore for statement that can't be covered"

5 years agoReduce selector specificity of `.wikitable`
Volker E [Sat, 19 Jan 2019 00:15:52 +0000 (16:15 -0800)]
Reduce selector specificity of `.wikitable`

Reducing selector specificity by removing `table` from `.wikitable`.
All use cases seem to be covered by direct child `>` selectors anyways.

Bug: T214218
Change-Id: Iae532d6389348972a85404926aaa0c45de7e02e1

5 years agoMerge "filerepo: avoid dynamic calls to FileRepo::isVirtualUrl"
jenkins-bot [Fri, 18 Jan 2019 21:59:32 +0000 (21:59 +0000)]
Merge "filerepo: avoid dynamic calls to FileRepo::isVirtualUrl"

5 years agoregistration: Add @codeCoverageIgnore for statement that can't be covered
Kunal Mehta [Fri, 18 Jan 2019 21:57:43 +0000 (13:57 -0800)]
registration: Add @codeCoverageIgnore for statement that can't be covered

MW_PHPUNIT_TEST will always be defined during tests, so we can't have a
test that requires it to be undefined.

Change-Id: I67b011af31026bc9c568725f8f294359b63f2fd5

5 years agofilerepo: avoid dynamic calls to FileRepo::isVirtualUrl
Aaron Schulz [Fri, 18 Jan 2019 21:03:45 +0000 (13:03 -0800)]
filerepo: avoid dynamic calls to FileRepo::isVirtualUrl

Change-Id: Ie851ec33ba5d7965393e41595d0b4b9df070bd27

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 18 Jan 2019 20:54:03 +0000 (21:54 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I1fc5d6f7500437df862f9f3f7b8e42af4702a9d8

5 years agoMerge "Make sure page restrictions are handled as a string"
jenkins-bot [Fri, 18 Jan 2019 17:52:14 +0000 (17:52 +0000)]
Merge "Make sure page restrictions are handled as a string"

5 years agoMerge "TablePager: Reduce pagination button in visual strength"
jenkins-bot [Fri, 18 Jan 2019 17:47:05 +0000 (17:47 +0000)]
Merge "TablePager: Reduce pagination button in visual strength"

5 years agoMake sure page restrictions are handled as a string
Thalia [Fri, 18 Jan 2019 16:22:09 +0000 (16:22 +0000)]
Make sure page restrictions are handled as a string

Bug: T214173
Change-Id: I3ec9b0a4f797b0e89fd30a9ceafcaaf8a6dce5d9

5 years agoTablePager: Reduce pagination button in visual strength
Volker E [Fri, 18 Jan 2019 00:04:30 +0000 (16:04 -0800)]
TablePager: Reduce pagination button in visual strength

Reducing buttons to `frameless` buttons and reposition icons of
next and last page button to be symmetrically harmonious.

Bug: T214128
Change-Id: I1c0a621d7699b5fadc2559abdf6003a0db0aabae

5 years agoFix exception language in MovePage
Gergő Tisza [Thu, 17 Jan 2019 23:55:35 +0000 (15:55 -0800)]
Fix exception language in MovePage

Follows up I8f6c9647ee.

Change-Id: Iff2941bfc9e14f52ddd33f0a3d522c5a0d594c3e

5 years agoMerge "dao: Add a type hint to getConnection() and some extra newlines"
jenkins-bot [Thu, 17 Jan 2019 23:43:29 +0000 (23:43 +0000)]
Merge "dao: Add a type hint to getConnection() and some extra newlines"

5 years agoMerge "DateTimeInputWidget: Set `max-width` equivalent to calendar popup"
jenkins-bot [Thu, 17 Jan 2019 23:28:23 +0000 (23:28 +0000)]
Merge "DateTimeInputWidget: Set `max-width` equivalent to calendar popup"

5 years agoMerge "WikiTextStructure: Add an exclusion from WikibaseMediaInfo"
jenkins-bot [Thu, 17 Jan 2019 19:50:38 +0000 (19:50 +0000)]
Merge "WikiTextStructure: Add an exclusion from WikibaseMediaInfo"

5 years agoMerge "WikiTextStructure: Explain the source of two non-Core exclusions"
jenkins-bot [Thu, 17 Jan 2019 19:50:33 +0000 (19:50 +0000)]
Merge "WikiTextStructure: Explain the source of two non-Core exclusions"

5 years agoMerge "Try to avoid master queries for GET requests"
jenkins-bot [Thu, 17 Jan 2019 18:46:14 +0000 (18:46 +0000)]
Merge "Try to avoid master queries for GET requests"

5 years agoWikiTextStructure: Add an exclusion from WikibaseMediaInfo
James D. Forrester [Thu, 17 Jan 2019 18:31:52 +0000 (10:31 -0800)]
WikiTextStructure: Add an exclusion from WikibaseMediaInfo

This is not lovely, and probably should be a hook or similar.

Bug: T213638
Change-Id: I042ac81b630dede55887e644692ea1a3b1fd6fe1

5 years agoWikiTextStructure: Explain the source of two non-Core exclusions
James D. Forrester [Thu, 17 Jan 2019 18:31:28 +0000 (10:31 -0800)]
WikiTextStructure: Explain the source of two non-Core exclusions

Change-Id: I2673afb25c6f21789a4c89f390ca13dae2cc2fa9

5 years agoMerge "Linker: Simplify return paths"
jenkins-bot [Thu, 17 Jan 2019 18:19:25 +0000 (18:19 +0000)]
Merge "Linker: Simplify return paths"

5 years agoMerge "ApiSetNotificationTimestamp: Make entirewatchlist more efficient"
jenkins-bot [Thu, 17 Jan 2019 18:04:46 +0000 (18:04 +0000)]
Merge "ApiSetNotificationTimestamp: Make entirewatchlist more efficient"

5 years agoAdding $digitTransformTable for Santali (sat)
Aftab [Tue, 18 Dec 2018 21:10:34 +0000 (21:10 +0000)]
Adding $digitTransformTable for Santali (sat)

Bug: T212221
Change-Id: I30b9b55f16186e7fd404b6e3c9460a3fd81187d0

5 years agoLinker: Simplify return paths
Fomafix [Thu, 3 Jan 2019 10:13:19 +0000 (11:13 +0100)]
Linker: Simplify return paths

* Avoid else after return.
* Use early-return pattern.

Change-Id: I059e233d019dbc2233756776dfa09f8f2fdb2df7

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 17 Jan 2019 07:24:35 +0000 (08:24 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I86f2b814991862ac1d750445543e6d9a8117c23a

5 years agoDateTimeInputWidget: Set `max-width` equivalent to calendar popup
Volker E [Thu, 17 Jan 2019 07:04:25 +0000 (23:04 -0800)]
DateTimeInputWidget: Set `max-width` equivalent to calendar popup

Input fields should provide as much width as user input is needed or
in this case a little more to be aligned with inherently connected
calendar widget.

Bug: T213785
Change-Id: Id316af701cd054ed29603ffa38af9238a39cb50e

5 years agoMerge "Fix error reporting in MovePage"
jenkins-bot [Thu, 17 Jan 2019 05:02:23 +0000 (05:02 +0000)]
Merge "Fix error reporting in MovePage"

5 years agoMerge "Separate content parts of mw-usertoollinks from presentation"
jenkins-bot [Thu, 17 Jan 2019 02:25:19 +0000 (02:25 +0000)]
Merge "Separate content parts of mw-usertoollinks from presentation"

5 years agoFix error reporting in MovePage
Gergő Tisza [Thu, 17 Jan 2019 02:14:52 +0000 (18:14 -0800)]
Fix error reporting in MovePage

Bug: T210739
Change-Id: I8f6c9647ee949b33fd4daeae6aed6b94bb1988aa

5 years agoTry to avoid master queries for GET requests
Daimona Eaytoy [Wed, 16 Jan 2019 22:25:46 +0000 (23:25 +0100)]
Try to avoid master queries for GET requests

Skin::getUndeleteLink performs several checks, including a
Title::userCan, which in turn checks the blocked status from master in
order to decide whether to show the link. This happens during GET
requests, and a basic calculation shows that it is responsible for
roughly 15% of the DBPerformance alerts.
This patch rearranges the IF conditions so that the permission check is
performed last, and thus will be avoided if the previous condition is
false.

Change-Id: I45a18a244a26df09beb12e198e0e91a465bd1907

5 years agoApiSetNotificationTimestamp: Make entirewatchlist more efficient
Roan Kattouw [Thu, 3 Jan 2019 01:41:04 +0000 (17:41 -0800)]
ApiSetNotificationTimestamp: Make entirewatchlist more efficient

Use WatchedItemStore's built-in feature for clearing the entire
watchlist when no timestamp is specified. When a timestamp is specified,
this will still use the inefficient page-by-page method, which I'll
improve in a follow-up commit.

Bug: T207941
Change-Id: I2008ff89c95fe6f66a3fd789d2cef0e8fe52bd93

5 years agoMerge "AllMessagesTablePager: Simplify language handling"
jenkins-bot [Wed, 16 Jan 2019 20:19:01 +0000 (20:19 +0000)]
Merge "AllMessagesTablePager: Simplify language handling"

5 years agoMerge "Deprecate Content::getNativeData, add TextContent::getText"
jenkins-bot [Wed, 16 Jan 2019 20:17:22 +0000 (20:17 +0000)]
Merge "Deprecate Content::getNativeData, add TextContent::getText"

5 years agoMerge "Simplify boolean logic for Special:Block widgets"
jenkins-bot [Wed, 16 Jan 2019 20:17:16 +0000 (20:17 +0000)]
Merge "Simplify boolean logic for Special:Block widgets"

5 years agoDeprecate Content::getNativeData, add TextContent::getText
daniel [Thu, 8 Nov 2018 15:19:23 +0000 (16:19 +0100)]
Deprecate Content::getNativeData, add TextContent::getText

getNativeData() is under-specified - callers can do nothing with the
value returned by getNativeData without knowing the concrete Content
class. And if they know the concrete class, they can and should use
a specialized getter instead, anyway.

Basically, getNativeData is overly generic, an example of polymorphism
done poorly. Let's fix it now.

Bug: T155582
Change-Id: Id2c61dcd38ab30416a25746e3680edb8791ae8e8

5 years agoMerge "Fix BlockList params for non-editing partial blocks"
jenkins-bot [Wed, 16 Jan 2019 19:23:00 +0000 (19:23 +0000)]
Merge "Fix BlockList params for non-editing partial blocks"

5 years agoMerge "Correct namespace 'Template' for gom-deva"
jenkins-bot [Wed, 16 Jan 2019 18:39:46 +0000 (18:39 +0000)]
Merge "Correct namespace 'Template' for gom-deva"

5 years agoFix BlockList params for non-editing partial blocks
Dayllan Maza [Wed, 16 Jan 2019 18:20:51 +0000 (13:20 -0500)]
Fix BlockList params for non-editing partial blocks

When multiple blocks are listed, if there is a partial block
with restrictions, any other partial block in the list will be
shown as an editing block even if it isn't.

Bug: T213952
Change-Id: Ieafb5f71c484d9f0551fa293f7c43e1a3a2e1f2a

5 years agoCorrect namespace 'Template' for gom-deva
The Discoverer [Mon, 14 Jan 2019 19:55:43 +0000 (19:55 +0000)]
Correct namespace 'Template' for gom-deva

The existing name for the 'Template' namespace was incorrect. Hence,
replaced it with the correct word for 'Template' and 'Template_talk',
and added the existing ones as aliases.

Noticed that the existing file was missing a comma at the end of the
last item in the alias list.

Bug: T213717
Change-Id: Ibb8385cae3368e2c36006cf9993dec4ebbbc4491

5 years agoFully extract services framework as a library
Lucas Werkmeister [Mon, 10 Dec 2018 17:33:38 +0000 (18:33 +0100)]
Fully extract services framework as a library

This code doesn’t use any MediaWiki-specific code, so rename
MediaWiki\Services to Wikimedia\Services and move it below libs/. (Of
course, this does not apply to the MediaWikiServices subclass.)

Class aliases are added to retain backwards compatibity for now.

Bug: T211608
Change-Id: Ic14ea28ef21c359695b309d4293dbaaf5deedc09

5 years agoSimplify boolean logic for Special:Block widgets
Thalia [Mon, 14 Jan 2019 20:51:20 +0000 (20:51 +0000)]
Simplify boolean logic for Special:Block widgets

The boolean logic controlling the showing/hiding of widgets on
Special:Block could be expressed more simply. The logic is
becoming more complex due to partial blocks, so now is a good
time to rephrase it.

This removes safeguards against passing undefined to toggle,
so make sure none of the checks ever return undefined.

Change-Id: I1e0eb288db708be951fe5cf11f658725a38a7c4d

5 years agoAvoid session double-start in Setup.php
Brad Jorsch [Sat, 12 Jan 2019 19:16:52 +0000 (14:16 -0500)]
Avoid session double-start in Setup.php

In PHP before 7.3, the double start doesn't really matter: session_id()
changes the ID even if it was already started, and the warning from
session_start() can just be ignored. Which is what we did.

In PHP 7.3, now session_id() also warns and no longer changes the ID. To
preserve the previous behavior, we'll need to explicitly close the old
session and open the new one.

Bug: T213489
Change-Id: I02a5be1c3adb326927c156fdd00663bccee37477

5 years agodao: Add a type hint to getConnection() and some extra newlines
Derick Alangi [Wed, 16 Jan 2019 13:29:53 +0000 (14:29 +0100)]
dao: Add a type hint to getConnection() and some extra newlines

Change-Id: I57a060394403a6b7335fda68edaeabc02888e14d

5 years agoMerge "Chinese Conversion Table Update 2018-4"
jenkins-bot [Wed, 16 Jan 2019 08:34:42 +0000 (08:34 +0000)]
Merge "Chinese Conversion Table Update 2018-4"

5 years agoMerge "resourceloader: Avoid unnecessary xmlns attributes in ResourceLoaderImage"
Krinkle [Wed, 16 Jan 2019 07:49:54 +0000 (07:49 +0000)]
Merge "resourceloader: Avoid unnecessary xmlns attributes in ResourceLoaderImage"

5 years agoMerge "Setup: Avoid using count() function in any kind of loop(s)"
jenkins-bot [Wed, 16 Jan 2019 07:04:36 +0000 (07:04 +0000)]
Merge "Setup: Avoid using count() function in any kind of loop(s)"

5 years agoMerge "Safe replacement of a lot of `!count()` with `=== []`"
jenkins-bot [Wed, 16 Jan 2019 07:03:47 +0000 (07:03 +0000)]
Merge "Safe replacement of a lot of `!count()` with `=== []`"

5 years agoresourceloader: Avoid unnecessary xmlns attributes in ResourceLoaderImage
Bartosz Dziewoński [Tue, 15 Jan 2019 19:43:35 +0000 (20:43 +0100)]
resourceloader: Avoid unnecessary xmlns attributes in ResourceLoaderImage

We were creating the `<g>` element without specifying a namespace,
which caused the library to add `xmlns` attributes with the document's
default SVG namespace to elements that we appended underneath it.
(At least, that's what I think was happening.)

Specify the SVG namespace when creating it to avoid the mess and
reduce resulting file size.

Change-Id: Ida27494aeae9dece16f878c16cf9aa582e6deac3

5 years agoMerge "resourceloader: Avoid toplevel `<title>` under `<g>` in ResourceLoaderImage"
jenkins-bot [Wed, 16 Jan 2019 00:39:29 +0000 (00:39 +0000)]
Merge "resourceloader: Avoid toplevel `<title>` under `<g>` in ResourceLoaderImage"

5 years agoresourceloader: Avoid toplevel `<title>` under `<g>` in ResourceLoaderImage
Bartosz Dziewoński [Tue, 15 Jan 2019 19:28:30 +0000 (20:28 +0100)]
resourceloader: Avoid toplevel `<title>` under `<g>` in ResourceLoaderImage

While it shouldn't be causing any rendering problems,
doing so is semantically incorrect.

Bug: T213507
Change-Id: Ic86cd2bf3028eb24ad60db7ffa9498dd86edd4a5

5 years agoAdd missing "@return StatusValue" to all abstract do… methods
Thiemo Kreuz [Tue, 15 Jan 2019 11:36:04 +0000 (12:36 +0100)]
Add missing "@return StatusValue" to all abstract do… methods

All implementations do this, and all callers expect this. I wonder how
the documentation for this detail got lost?

Change-Id: If4977c9f4032ca5d93ea91f49cdc70f7ef1175ba

5 years agoAllMessagesTablePager: Simplify language handling
Fomafix [Tue, 15 Jan 2019 19:30:48 +0000 (20:30 +0100)]
AllMessagesTablePager: Simplify language handling

wfGetLangObj always returns a Language object and never returns null.
The ?? operator never reached the fallback $contLang.

Message::inLanguage supports language code strings and Language objects.
Language code strings get converted to a Language object. So directly
pass the available Language object.

Change-Id: I5e13d6350df8b9b0261c853939d3485c4ed835cd

5 years agoAdd missing empty lines between methods
Thiemo Kreuz [Tue, 15 Jan 2019 15:04:58 +0000 (16:04 +0100)]
Add missing empty lines between methods

This might hint at an edge-case in the PHP CodeSniffer sniff that should
detect if methods are separated by a single empty line. Feel free to
investigate. I, personally, can't invest more time in this than
suggesting this quick fix.

Change-Id: Ib3c60eac76f255b4fe929f7933de256222716576

5 years agoSafe replacement of a lot of `!count()` with `=== []`
Thiemo Kreuz [Wed, 9 Jan 2019 16:24:36 +0000 (17:24 +0100)]
Safe replacement of a lot of `!count()` with `=== []`

This was originally a global search and replace. I manually checked all
replacements and reverted them if (due to the lack of type hints) either
null (that would be 0 when counted) or a Countable object can end in the
variable or property in question.

Now this patch only touches places where I'm sure nothing can break.

For the sanity of the honorable reviewers this patch is exclusively touching
negated counts. You should not find a single `!== []` in this patch, that
would be a mistake.

Change-Id: I5eafd4d8fccdb53a668be8e6f25a566f9c3a0a95

5 years agoMerge "Fix non-editing partial block creation on Special:Block"
jenkins-bot [Tue, 15 Jan 2019 15:40:49 +0000 (15:40 +0000)]
Merge "Fix non-editing partial block creation on Special:Block"

5 years agoSetup: Avoid using count() function in any kind of loop(s)
Derick Alangi [Sat, 12 Jan 2019 19:39:51 +0000 (20:39 +0100)]
Setup: Avoid using count() function in any kind of loop(s)

Using count() function in loops makes things very slow because
of function overheads and this function gets called everytime the
loop runs meaning the bigger the value of the variable in count(),
the slower the loop as its value always gets computed as the loop
runs.

In this case, the use of foreach(...){} is possible in order to
perform the computation making it pretty fast hence improving the
performance.

Change-Id: Ie21fbf8f6acf72373d1da75023725b4592c80386

5 years agoFix non-editing partial block creation on Special:Block
Thalia [Mon, 14 Jan 2019 14:58:42 +0000 (14:58 +0000)]
Fix non-editing partial block creation on Special:Block

Bug: T213707
Change-Id: Iaf8b3a6a0b2715808c9e6f8de94d315404368b12

5 years agoMerge "registration: Allow overriding attributes in tests"
jenkins-bot [Mon, 14 Jan 2019 22:12:23 +0000 (22:12 +0000)]
Merge "registration: Allow overriding attributes in tests"

5 years agoMerge "OOUI: Backport Ie43a0a346fea2dd2fda540d62f24410de1bc0d76"
jenkins-bot [Mon, 14 Jan 2019 20:54:47 +0000 (20:54 +0000)]
Merge "OOUI: Backport Ie43a0a346fea2dd2fda540d62f24410de1bc0d76"

5 years agoregistration: Allow overriding attributes in tests
Kunal Mehta [Sat, 12 Jan 2019 19:35:02 +0000 (11:35 -0800)]
registration: Allow overriding attributes in tests

ExtensionRegistry is a rather special singleton that can't use the normal
MediaWikiServices reset due to its early initialization, so introduce
a ->setAttributeForTest method to override attributes that are typically
loaded from extension.json.

Bug: T200013
Change-Id: I9e62a02ed2044c847e9ab2dcdfab094001f88986

5 years agoOOUI: Backport Ie43a0a346fea2dd2fda540d62f24410de1bc0d76
Bartosz Dziewoński [Mon, 14 Jan 2019 20:08:11 +0000 (21:08 +0100)]
OOUI: Backport Ie43a0a346fea2dd2fda540d62f24410de1bc0d76

Bug: T213544
Change-Id: I0bec76fd6d394329331c23ef43c28cb502cb5605

5 years agoRemove leading space from 'selfmove' message
Bartosz Dziewoński [Mon, 14 Jan 2019 19:52:48 +0000 (20:52 +0100)]
Remove leading space from 'selfmove' message

It would cause the error message to render as preformatted text.
https://phabricator.wikimedia.org/F27889207

Change-Id: I83136e4ac29eb091b4a86ab3bc22c907bb8ca7bc

5 years agoFix @param values on private functions
Fomafix [Mon, 14 Jan 2019 06:01:19 +0000 (07:01 +0100)]
Fix @param values on private functions

Change-Id: Id7442d5fc557227b3973f5008a3bc1390c528737

5 years agoMerge "Rescue some more HISTORY"
jenkins-bot [Mon, 14 Jan 2019 16:46:37 +0000 (16:46 +0000)]
Merge "Rescue some more HISTORY"

5 years agoRescue some more HISTORY
Reedy [Mon, 14 Jan 2019 16:07:17 +0000 (16:07 +0000)]
Rescue some more HISTORY

Change-Id: Ieb7a95b91aa3d83574e8553acfb89e2b9eee027a

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 13 Jan 2019 20:53:25 +0000 (21:53 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I1fe81ace8ae5a401ac3f7e3dbf29b82fa3f274f3

5 years agoMerge "Clarify warnings about missing software diff3 and git."
jenkins-bot [Sun, 13 Jan 2019 01:48:47 +0000 (01:48 +0000)]
Merge "Clarify warnings about missing software diff3 and git."

5 years agoUse the ?: shortcut from PHP 5.3 where it makes sense
Thiemo Kreuz [Wed, 9 Jan 2019 15:52:38 +0000 (16:52 +0100)]
Use the ?: shortcut from PHP 5.3 where it makes sense

Change-Id: Ieff70f23b19f0be3670c4ed3e2a5c30ef3792d7f

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 12 Jan 2019 21:04:59 +0000 (22:04 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I0d13f0ef78e9ee1936af9f642c441853457e5409

5 years agoMerge "Add special page class for disabling special pages"
jenkins-bot [Sat, 12 Jan 2019 19:01:45 +0000 (19:01 +0000)]
Merge "Add special page class for disabling special pages"

5 years agoAdd special page class for disabling special pages
Gergő Tisza [Fri, 16 Nov 2018 02:22:26 +0000 (18:22 -0800)]
Add special page class for disabling special pages

Similar to the ApiDisabled class, but for special pages.

Change-Id: Ib56860bc3f8a14fd332b775b1e7f50953641ee82

5 years agoMerge "ImageListPager: Kill that annoying GROUP BY"
jenkins-bot [Sat, 12 Jan 2019 18:15:40 +0000 (18:15 +0000)]
Merge "ImageListPager: Kill that annoying GROUP BY"

5 years agoMerge "Move RELEASE-NOTES-1.32 (from REL1_32) into HISTORY"
jenkins-bot [Sat, 12 Jan 2019 16:25:01 +0000 (16:25 +0000)]
Merge "Move RELEASE-NOTES-1.32 (from REL1_32) into HISTORY"

5 years agoMove RELEASE-NOTES-1.32 (from REL1_32) into HISTORY
Reedy [Thu, 10 Jan 2019 22:04:22 +0000 (22:04 +0000)]
Move RELEASE-NOTES-1.32 (from REL1_32) into HISTORY

REL1_32 has gone out of the door!

Change-Id: Id93f97d73b5213935379c8ab62724897504adaad

5 years agoexport: Mark DumpFilter::mark() as being protected
Thiemo Kreuz [Fri, 11 Jan 2019 18:25:26 +0000 (19:25 +0100)]
export: Mark DumpFilter::mark() as being protected

I used
https://codesearch.wmflabs.org/search/?q=-%3Epass%5C(
to make sure there really is no other call to this. This function really
is meant to be protected.

I also used
https://codesearch.wmflabs.org/search/?q=function%20pass%5C(&files=php
to make sure I got all subclasses.

Required for I7da632c43681438aa886bdb709379f10cd9cc658.

Change-Id: I9aaf95c66a6efa22131de627ce015587a109858b

5 years agoMerge "Update OOUI to v0.30.1"
jenkins-bot [Fri, 11 Jan 2019 17:28:51 +0000 (17:28 +0000)]
Merge "Update OOUI to v0.30.1"

5 years agoMerge "clientpool: Fix non-canonical order of elements (PHPDocs)"
jenkins-bot [Fri, 11 Jan 2019 17:03:42 +0000 (17:03 +0000)]
Merge "clientpool: Fix non-canonical order of elements (PHPDocs)"

5 years agoMerge "block: Avoid use of is_null() PHP function where necessary"
jenkins-bot [Fri, 11 Jan 2019 16:50:46 +0000 (16:50 +0000)]
Merge "block: Avoid use of is_null() PHP function where necessary"

5 years agoMerge "collation: Fix non-canonical order of elements"
jenkins-bot [Fri, 11 Jan 2019 16:37:13 +0000 (16:37 +0000)]
Merge "collation: Fix non-canonical order of elements"

5 years agoMerge "actions: Avoid use of is_null() PHP function where necessary"
jenkins-bot [Fri, 11 Jan 2019 16:23:10 +0000 (16:23 +0000)]
Merge "actions: Avoid use of is_null() PHP function where necessary"

5 years agoclientpool: Fix non-canonical order of elements (PHPDocs)
Derick Alangi [Fri, 11 Jan 2019 09:43:39 +0000 (10:43 +0100)]
clientpool: Fix non-canonical order of elements (PHPDocs)

Change-Id: Ia45326a11ae6da2b3196804d70f823c841570e7c

5 years agoUpdate OOUI to v0.30.1
James D. Forrester [Fri, 11 Jan 2019 16:19:16 +0000 (08:19 -0800)]
Update OOUI to v0.30.1

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

Bug: T76638
Bug: T210847
Bug: T212977
Depends-On: Ib466527110d5068e297c42ebb3dd381c0c83754a
Change-Id: Ib466527110d5068e297c42ebb3dd381c0c83754b

5 years agoblock: Avoid use of is_null() PHP function where necessary
Derick Alangi [Fri, 11 Jan 2019 15:49:44 +0000 (16:49 +0100)]
block: Avoid use of is_null() PHP function where necessary

WRT performance, is_null() is a few nanoseconds slower than === null
due to function call overhead. Also, I personally think using the
identical check on null is slightly more readable than using is_null().

Change-Id: I83cd7a6ca49acc548a7f46b2c37dfa189889bd19

5 years agoactions: Avoid use of is_null() PHP function where necessary
Derick Alangi [Fri, 11 Jan 2019 15:40:27 +0000 (16:40 +0100)]
actions: Avoid use of is_null() PHP function where necessary

WRT performance, is_null() is a few nanoseconds slower than === null
due to function call overhead. Also, I personally think using the
identical check on null is slightly more readable than using is_null().

Change-Id: Ie5b1ac17a18907e92eb3042decb7fc75e903123d

5 years agoMerge "Fix SVG metadata handler by changing offset from -1 to 0"
jenkins-bot [Fri, 11 Jan 2019 11:47:05 +0000 (11:47 +0000)]
Merge "Fix SVG metadata handler by changing offset from -1 to 0"

5 years agocollation: Fix non-canonical order of elements
Derick Alangi [Fri, 11 Jan 2019 09:48:14 +0000 (10:48 +0100)]
collation: Fix non-canonical order of elements

Change-Id: Ie3f19e9e1f91faf6cee32c3c63d86215ba52c8e2

5 years agoFix Revison typo
zoranzoki21 [Thu, 10 Jan 2019 19:26:39 +0000 (20:26 +0100)]
Fix Revison typo

Bug: T201491
Change-Id: I4a91d64dafdafd022462730c221cdf2a113d2ef2

5 years agoFix SVG metadata handler by changing offset from -1 to 0
Brian Wolff [Fri, 11 Jan 2019 00:08:07 +0000 (00:08 +0000)]
Fix SVG metadata handler by changing offset from -1 to 0

Starting in php 7.1, negative offsets are supported in
file_get_contents. Previously they were not (and in fact, the
php docs said -1 was the default value for the offset if unspecified).

The result of this, is starting in php 7.1, MediaWiki could not determine
the aspect ratio of SVG files that were larger than 256kb.

Follows up e6de99be

Bug: T213501
Change-Id: I565e51cd8131542b9a70da49e9cc36c5594ecda3

5 years agoMerge "rollbackEdits.php: Cosmetic changes of outputs"
jenkins-bot [Thu, 10 Jan 2019 22:10:43 +0000 (22:10 +0000)]
Merge "rollbackEdits.php: Cosmetic changes of outputs"

5 years agoMerge "build: Remove 'stylelint' package as it gets pulled-in by 'stylelint-config...
jenkins-bot [Thu, 10 Jan 2019 21:59:46 +0000 (21:59 +0000)]
Merge "build: Remove 'stylelint' package as it gets pulled-in by 'stylelint-config-wikimedia'"

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 10 Jan 2019 21:26:23 +0000 (22:26 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I707519be5cbb133b724b02d0659fe35ce545df82

5 years agobuild: Remove 'stylelint' package as it gets pulled-in by 'stylelint-config-wikimedia'
Volker E [Thu, 10 Jan 2019 21:17:31 +0000 (13:17 -0800)]
build: Remove 'stylelint' package as it gets pulled-in by 'stylelint-config-wikimedia'

Change-Id: I734ebf6c18a3266bec2d9c9e38e827c3ec412586

5 years agoMerge "maintenance: Fix detection of bad hooks (wfRunHooks -> Hooks::run)"
jenkins-bot [Thu, 10 Jan 2019 21:13:37 +0000 (21:13 +0000)]
Merge "maintenance: Fix detection of bad hooks (wfRunHooks -> Hooks::run)"

5 years agoMerge "filerepo: Remove begin/done comments from LocalFile"
jenkins-bot [Thu, 10 Jan 2019 19:50:52 +0000 (19:50 +0000)]
Merge "filerepo: Remove begin/done comments from LocalFile"

5 years agomaintenance: Fix detection of bad hooks (wfRunHooks -> Hooks::run)
Timo Tijhof [Thu, 10 Jan 2019 19:33:10 +0000 (11:33 -0800)]
maintenance: Fix detection of bad hooks (wfRunHooks -> Hooks::run)

It was still looking for wfRunHooks, which no longer exists
as of MediaWiki 1.32.

After this, it is now able to find one bad hook:

> Unclear hook calls:
> - Hooks::run( $action . 'ArticleComplete', [ .. ] ); # SpecialEditWatchlist

Also, remove the matching of wfRunHooks generally, given it no
longer exists. And also remove the historic notes from hooks.txt.

Change-Id: I4ac52ed75fb99d7775d4b4755e3f0871003d70a8

5 years agoAdd missing message for OOUI v0.30.0
Bartosz Dziewoński [Thu, 10 Jan 2019 15:53:20 +0000 (16:53 +0100)]
Add missing message for OOUI v0.30.0

Follow-up to 221b03c2436dd99f395e22e09fd356e4d380e04d.

Change-Id: I18193b191c516c14e32f0959dee2ac4c78564ce8

5 years agoMerge "createAndPromote: use AuthManager::autoCreateUser"
jenkins-bot [Thu, 10 Jan 2019 15:51:14 +0000 (15:51 +0000)]
Merge "createAndPromote: use AuthManager::autoCreateUser"

5 years agoMerge "Fix slow queries in migrateActors.php"
jenkins-bot [Thu, 10 Jan 2019 15:51:08 +0000 (15:51 +0000)]
Merge "Fix slow queries in migrateActors.php"