Commit graph

94437 commits

Author SHA1 Message Date
Daimona Eaytoy
183edf76fd tests: Replace a very long string with str_repeat
Strings like this can make it problematic to scroll the page.

Change-Id: Ic2a5905fc64ea2d3bc1cb76746170953a671d107
2020-02-27 09:41:25 +00:00
Translation updater bot
cb97bd764a Localisation updates from https://translatewiki.net.
Change-Id: Ice93068d02f561bbf3f1c7b955306ce046bdfd00
2020-02-27 08:08:19 +01:00
DannyS712
28671f69b4 OutputPageBeforeHTML: Fix class of first parameter in docs
Its an OutputPage, not a ParserOutput

Change-Id: Icfff5e9f8f2254eec00368ec63b24a16e4746aed
2020-02-27 05:01:35 +00:00
jenkins-bot
b8c4c66a52 Merge "docs: Add missing BeforeResetNotificationTimestamp hook and MediaWikiPHPUnitTest::*" 2020-02-27 04:22:36 +00:00
James D. Forrester
d6f2df383d Update OOUI to v0.37.0
Release notes:
 https://gerrit.wikimedia.org/g/oojs/ui/+/v0.37.0/History.md

Bug: T207369
Bug: T232383
Bug: T235585
Bug: T237230
Bug: T245073
Bug: T245576
Bug: T245760
Bug: T245793
Change-Id: I63186c4fe4a38f5d4094e4a2be8ea8c6a0963a65
Depends-On: I149a10c2b289ae3849dca884a8b4da716782b24a
2020-02-26 18:26:14 -08:00
James D. Forrester
2681a587ca Update oojs to v3.0.1
Release notes:
 https://gerrit.wikimedia.org/g/oojs/core/+/v3.0.1/History.md

Change-Id: I637f854e4022726ee2a24cd37a552764a03cea6e
2020-02-26 18:23:36 -08:00
James D. Forrester
51ae353ab5 Special:Preferences: Split the unknown/neutral gender into label and help
The extensive label for the "how" of the form in English obscures the "what". By
splitting the radio button's label into a short "what" and retaining the current
message, which in English is currently *entirely* a "how", allows translators to
retain the opportunity to advise their users about the manner in which this will
affect their experience.

Change-Id: I5ca2fb56ee4b50bd6af9b13dfe3c50c1f661a4e8
2020-02-26 17:22:56 -08:00
jenkins-bot
1d8022d796 Merge "Remove $wgAllowTitlesInSVG, deprecated and unused" 2020-02-27 00:03:59 +00:00
jenkins-bot
38e5de253e Merge "mediawiki.ui: Match button padding/line-height to inputs & OOUI" 2020-02-26 23:38:43 +00:00
Ed Sanders
041d26149b mediawiki.ui: Match button padding/line-height to inputs & OOUI
Follow-up to I3f95489074d220188cbb20cfc4f129712f8b3544.

Input and buttons should now both be exactly 32px tall.

Change-Id: Id9eb662c314f20554baebe3b314ad89559f8b887
2020-02-26 23:24:48 +00:00
jenkins-bot
6350175756 Merge "editpage: Set tab index on "Cancel" button that follows the other buttons" 2020-02-26 21:50:27 +00:00
jenkins-bot
2ca0701318 Merge "apisandbox.js: fix PARAM_MAX2 handling" 2020-02-26 21:44:53 +00:00
Akinwale Alagbe
6534a72f45 editpage: Set tab index on "Cancel" button that follows the other buttons
When page loads, cancel button doesn't get
focus when user hits the tab button continuously.
Hence tabbing is not intuitive to keyboard only users.

Adding a tabindex property to the cancel button to force the button to
belong in the same tab order as "Save Changes",  "Show Preview" and
"Show Changes" button .

Bug: T246257
Change-Id: I38e6c6e047ce93d7101e91d1b94c198f0ff7a19a
2020-02-26 21:33:56 +00:00
Peter Ovchyn
9b34f6786a sqlite: Fix broken integration tests for SQLite db driver
Bug: T245995
Change-Id: I280487bf27e4864eba8c0f02f408306061b948b2
2020-02-26 21:57:09 +02:00
jenkins-bot
7dd5ede644 Merge "Increase PHP requirement from 7.2.9 to 7.2.22 due to segfault issue" 2020-02-26 17:25:20 +00:00
Translation updater bot
5f3d6f0942 Localisation updates from https://translatewiki.net.
Change-Id: I278dd3bbf9b0379cf40657245cd52014ed1f1ead
2020-02-26 07:56:00 +01:00
DannyS712
8500f9de90 Remove $wgAllowTitlesInSVG, deprecated and unused
Bug: T246193
Change-Id: I7c54d2804344112cf588a072e4140dea8bf9e9ed
2020-02-26 05:31:07 +00:00
DannyS712
7186b63f82 Hard deprecate Title::getUserPermissionsErrors
Remove final uses as well

Bug: T244929
Change-Id: I65e937c7b9904b1e93f649508b14148849589f82
2020-02-26 05:09:55 +00:00
DannyS712
dec8ddddcf Hard deprecate RecentChange::markPatrolled
It uses $wgUser, but rather than adding a user parameter, the whole
method can just be deprecated and removed. All existing calls have
already been updated.

Bug: T245195
Change-Id: Id7d67cd69d87283cb88455593a4a183c4a5c7721
2020-02-26 04:19:55 +00:00
Gergő Tisza
ed7c556d37
apisandbox.js: fix PARAM_MAX2 handling
The API validator logic falls back to PARAM_MAX2 when PARAM_MAX is
not defined, but the Special:ApiSandbox JS validation didn't;
instead it used an effective max of 0.

Change-Id: I22338f7293587878e3ba0f4951b75472968c3d7c
2020-02-25 20:09:07 -08:00
jenkins-bot
ab7028b9b5 Merge "Replace calls to Title::getUserPermissionsErrors (part 5)" 2020-02-26 03:28:16 +00:00
DannyS712
909f0bef6e Replace calls to Title::getUserPermissionsErrors (part 5)
This does //not// fix all calls in core.

Bug: T244929
Change-Id: I02ffcca31fa0bdc6bffddf21e82f4ff5e9ab5374
2020-02-26 03:00:33 +00:00
Tim Starling
ff4606fd7c docs: Add missing BeforeResetNotificationTimestamp hook and MediaWikiPHPUnitTest::*
Change-Id: I1dd9cb61e7732a56fcb1fc94a347311d5572b761
2020-02-25 18:25:02 -08:00
Tim Starling
53247b5c5b Add missing colons to parameter declarations
There's no other way to detect parameters, since variable names are
often mentioned in the description prose, even at the start of a line.

Change-Id: Ie375ecffaae4efa268c5305ea9b1cc55a91cd813
2020-02-26 13:05:04 +11:00
jenkins-bot
99cbde121c Merge "Remove mediawiki.template.regexp module" 2020-02-26 01:32:10 +00:00
jenkins-bot
53c229bc2f Merge "resourceloader: Convert mediawiki.Uri to package files" 2020-02-26 01:32:04 +00:00
jenkins-bot
faed218351 Merge "stashedit: Ensure that $summary is a string" 2020-02-25 21:54:10 +00:00
jenkins-bot
d5ca701ae0 Merge "[doc] [JavaScript] [Special:Preferences] Clarify selector" 2020-02-25 19:20:19 +00:00
Timo Tijhof
7cd07283d5 Remove mediawiki.template.regexp module
This was created for mediawiki.Uri, which no longer uses it
as of I1baa1465d88. It was never used anywhere else in any
repo in Wikimedia Gerrit, nor anywhere else indexed by
Codesearch.

Bug: T233676
Change-Id: Idcc31732fcfec95be63793e870966ab8cb2c2212
2020-02-25 19:19:13 +00:00
jenkins-bot
ed65726f0d Merge "SpecialWhatLinksHere: Fix queries (2020 edition)" 2020-02-25 19:02:08 +00:00
Stephen Niedzielski
2e65ba61cb [doc] [JavaScript] [Special:Preferences] Clarify selector
Add a clarifying comment to the current origin of the
mw-prefsection-rendering-skin-prefs ID.

Bug: T242381
Change-Id: I7ee636de1f678e871ca1b422f4faf353d864dc17
2020-02-25 11:26:06 -07:00
Ostrzyciel
6f8bd64c6a updateCollation.php: fix PHP error
Currently the updateCollation maintenance script throws an error
when ran, as it calls MediaWikiServices before it's initialized.
See the phab task for more details.

Bug: T246127
Change-Id: Ib9d6b485b55760897ff5152b5d6f22b0d6a36daa
2020-02-25 18:13:09 +01:00
jenkins-bot
7ac6a01b92 Merge "GallerySlideshow.setSizeRequirement: Account for unrounded values on width/height" 2020-02-25 16:40:16 +00:00
jenkins-bot
b87b7f9f1f Merge "[JavaScript] show / hide skin Special:Preferences" 2020-02-25 16:38:27 +00:00
jenkins-bot
fb808a5758 Merge "Inject language services into ApiQueryLanguageinfo" 2020-02-25 16:12:41 +00:00
jenkins-bot
9d30810d6d Merge "MediaWikiVersionFetcher: Change regex to capture any quoted string" 2020-02-25 16:04:12 +00:00
jenkins-bot
5949b43699 Merge "Update all use of $wgVersion to MW_VERSION" 2020-02-25 16:04:01 +00:00
jenkins-bot
e8e35a64ff Merge "Provide MW_VERSION and deprecate fake global $wgVersion" 2020-02-25 16:03:54 +00:00
Kosta Harlan
4d94b96e63 [docker] Adjust UID/GID variable names
As noted in the task, UID is a read-only variable by default in Bash. Rather
than rely on it existing let's explicitly define MW_DOCKER_(UID/GID) for use
with docker-compose.override.yml.

Bug: T246020
Change-Id: I768486858bc63393f35c3b89fb783c3845183da5
2020-02-25 13:01:40 +01:00
jenkins-bot
9b1445e1c5 Merge "Escape % sign if form valid percent-encoding in fragment identifiers" 2020-02-25 11:33:38 +00:00
jenkins-bot
30de218fdd Merge "Fix conditional phan config for Excimer" 2020-02-25 09:34:41 +00:00
jenkins-bot
3e959aa090 Merge "Localisation updates from https://translatewiki.net." 2020-02-25 09:08:51 +00:00
jenkins-bot
4dfd156f7b Merge "Don't use a dynamic hook name when calling a hook" 2020-02-25 09:04:09 +00:00
Translation updater bot
27a22f9333 Localisation updates from https://translatewiki.net.
Change-Id: I3b72a8056a49f1490cffefbb22880206f835ae35
2020-02-25 08:21:50 +01:00
Tim Starling
7d2f6a3459 Fix conditional phan config for Excimer
ProfilerExcimer is a MW core class. This code was meant to detect the
extension (which defines ExcimerProfiler not ProfilerExcimer) and if it
is not present, to use the stubs.

This is finding 01 of the wps.de review.

Change-Id: I76b417859b99bafd92a8b8a4b361f8e3cef0100a
2020-02-25 13:49:17 +11:00
Tim Starling
adc3c5f247 Don't use a dynamic hook name when calling a hook
It breaks my script.

Remove the IContentHandlerFactory consts without deprecation, they were
only introduced two weeks ago and are not used by anything.

Change-Id: I22eb637b64a9be8472affed1b4ae60c8fa3af93d
2020-02-25 13:42:30 +11:00
Timo Tijhof
27bffc167e MediaWikiVersionFetcher: Change regex to capture any quoted string
Deciding on the shape of the contents of this string seems out of
scope for this class. It just needs to return what is in the string
and make sure to match anything that isn't the string value of
the MW_VERSION constant. That means we need to capture from quote
to quote.

Change-Id: Iee734f8cb425be49601ee4211bb9c01f04164a3f
2020-02-25 02:16:23 +00:00
Timo Tijhof
f575721a06 Update all use of $wgVersion to MW_VERSION
Follows-up I04628de4152dd5.

Bug: T212738
Change-Id: I718474ec0d9fd29ac2c05477f0f2493615d8aff5
2020-02-25 02:16:12 +00:00
Timo Tijhof
a5d5ea82ca Provide MW_VERSION and deprecate fake global $wgVersion
$wgVersion is not a configuration variable, it should never be
changed at run-time.

While we've gone in the route of class constants for most constants,
this one will not benefit from class-autoloading since it needs to
be present from the very beginning.

MW_VERSION is named similarly as PHP_VERSION, and $wgVersion is
now soft-deprecated.

Bug: T212738
Change-Id: I04628de4152dd5c72646813e08ff35e422e265a4
2020-02-25 01:55:21 +00:00
jenkins-bot
7f637d3b4a Merge "extension.schema.v2: Fix schemas for 'templates'" 2020-02-25 01:28:39 +00:00