Commit graph

94809 commits

Author SHA1 Message Date
jenkins-bot
00e26b1563 Merge "WikiPageDbTestBase: Remove use of global $wgUser" 2020-03-15 22:34:20 +00:00
AronDemian
47cc31de95 tests: Enable 'npm run selenium' on Windows
Run the script explictly via sh, the default is cmd.exe on Windows.
Also ported from bash to sh per Jforrester's request.

Change-Id: I96b66c6ae01a1761619955be2e8a3dbc64edff18
2020-03-15 21:46:50 +00:00
DannyS712
559cd0bfd9 WikiPageDbTestBase: Remove use of global $wgUser
Bug: T243708
Change-Id: Ibd3360f6fd859fc7f4ebfe453a90a81dd4e662df
2020-03-15 20:39:41 +00:00
Timo Tijhof
c036b6aa5b cache: Remove use of $wgContLanguageCode in MessageCacheTest
Has been an unconfigurable copy of $wgLanguageCode,
since 2006 (MW 1.8).

Bug: T247674
Change-Id: I35f03bfcbf416d8689ba7b42c2bc4b9b0f1376e3
2020-03-15 00:23:02 +00:00
jenkins-bot
2825f1f832 Merge "Setup: Move simple shortcuts together in Setup.php and improve docs" 2020-03-15 00:14:21 +00:00
jenkins-bot
790923ff4e Merge "Setup: Remove compat for $wgDisableCounters" 2020-03-15 00:14:14 +00:00
jenkins-bot
18017b1af3 Merge "languages: Move default $wgNamespaceAliases to MessagesEn.php" 2020-03-15 00:14:08 +00:00
jenkins-bot
0500773a9e Merge "Setup: Remove compat for $wgUseSquid and friends" 2020-03-15 00:14:01 +00:00
Timo Tijhof
9463b0105b Setup: Move simple shortcuts together in Setup.php and improve docs
I've moved the simple config expansions that don't depend on anything
else in Setup.php together, more compactly.

Change-Id: Iefb7f8ffdca70bcfbf7cbf49f7939747c5ab0d76
2020-03-14 23:10:07 +00:00
Umherirrender
47ef87e272 Bundle services at top of TraditionalImageGallery::toHtml
Add Parser::getBadFileLookup to get the instance from there when having
a parser instance

Change-Id: I48e254406ffb62d847404a5f8e81a35f8d4c83f1
2020-03-14 20:29:37 +00:00
Timo Tijhof
81a31e162b Setup: Remove compat for $wgDisableCounters
Deprecated since 2014 in MediaWiki 1.25, and the feature it
controlled was removed from core in 1.26.

The feature is still available via the HitCounters extension,
<https://gerrit.wikimedia.org/g/mediawiki/extensions/HitCounters/>

Bug: T189966
Change-Id: I5e46d1aef1b44b8828bdd1bba644136391cc1c4c
2020-03-14 19:28:00 +00:00
Timo Tijhof
75ccdc6147 languages: Move default $wgNamespaceAliases to MessagesEn.php
These are not configuration but business logic, similar to the
canonical names that are in NamespaceInfo.php, these must always
exist and cannot be altered or unset.

They were previously unconditionally assigned during all requests
in Setup.php and passed down as "site configuration".

Changes:

* Move them to MessagesEn.php where they can be cached and
  processed the same way as other core-provided aliases.

  Document and confirm with tests that this is a mergeable
  attribute that follows the language chain.

* Remove the duplicated code in a few places that was reading
  this variable + Language::getNamespaceAliases(), to instead
  just call the latter and move the logic there, centralised,
  and tested.

  In doing so I noticed that these were applied in an
  inconsistent order. Sometimes the config won, sometimes not.
  There's no obvious right or wrong way here, but I've chosen
  to standardise on the way that Language::getNamespaceIds() did
  it, which is that config wins. This because that method seems
  to be most widely used of the three (it decides how URLs and
  titles are parsed), and thus the one I least want to change
  the behaviour of.

* Document that $wgNamespaceAliases may only be used to
  define (extra) aliases, it is and never was a way to access
  the complete list of aliases.

Bug: T189966
Change-Id: Ibb14181aba8c1b509264ed40523e9ab4000fd71a
2020-03-14 19:27:40 +00:00
jenkins-bot
c6fab7b740 Merge "Use MediaWikiServices::getMessageCache" 2020-03-14 18:27:12 +00:00
jenkins-bot
e49dd24767 Merge "Use MediaWikiServices::getRepoGroup in special page related classes" 2020-03-14 18:11:34 +00:00
jenkins-bot
e2ce391e72 Merge "Move contents of mediawiki.legacy.commonPrint into ResourceLoaderSkinModule" 2020-03-14 18:11:27 +00:00
jenkins-bot
208009082a Merge "Use MediaWikiServices::getRepoGroup in file related classes" 2020-03-14 18:11:21 +00:00
Timo Tijhof
e8d9d68b86 Setup: Remove compat for $wgUseSquid and friends
Follows-up f9f8dff40 (MediaWiki 1.34).

Bug: T189966
Change-Id: Ifc0022783e6b5e739d754f5a5060742d5ab42500
2020-03-14 16:59:26 +00:00
jenkins-bot
dcb93e016b Merge "Use MediaWikiServices::getRepoGroup" 2020-03-14 16:35:42 +00:00
Umherirrender
3161311c5a Use MediaWikiServices::getMessageCache
Change-Id: I07fcc9529991adc634c10e5ed8498ac138a1c2b7
2020-03-14 14:25:03 +01:00
Umherirrender
e28b4bd8af Use MediaWikiServices::getRepoGroup in file related classes
Change-Id: Iceec961de4f0cc689f7d3b981afac923b46c98f6
2020-03-14 12:36:27 +00:00
Umherirrender
1e4108c0c6 Use MediaWikiServices::getRepoGroup in special page related classes
Change-Id: Ibc77da63fc36c0657d89a497fb8be867a617ea88
2020-03-14 12:35:10 +00:00
Umherirrender
878330ae30 Use MediaWikiServices::getRepoGroup
Change-Id: Ibcef425c2e0c95d6d2f98b8d889f85ebcb33f20a
2020-03-14 13:16:12 +01:00
jenkins-bot
216d109a84 Merge "Setup: Move wgSkipSkins appendix to Skin::getAllowedSkins" 2020-03-14 09:03:23 +00:00
Reedy
fe94d1b39a tests: Use ::class rather than string class name
Change-Id: I50cf50e93917ba81fa846a7ea50ac2883e3167e5
2020-03-14 02:00:55 +00:00
jenkins-bot
bd0f1b8c78 Merge "Enhance passwored reset message" 2020-03-14 00:53:26 +00:00
jdlrobson
ecac8e1f96 Move contents of mediawiki.legacy.commonPrint into ResourceLoaderSkinModule
Use the existing `legacy` feature. It's assumed that this module was always
used with `mediawiki.legacy.shared` and minimizes disruptions given the
migration steps are identical to the approach taken in `mediawiki.legacy.shared`

The existing release notes are updated to reflect this.

Bug: T242177
Change-Id: I785321d86a5f26808eb83847a3dbbbe62c62698c
2020-03-14 00:16:16 +00:00
Timo Tijhof
50c3a47140 Setup: Move wgSkipSkins appendix to Skin::getAllowedSkins
This isn't a default setting or fallback, it's unconditional
business logic that can't be overidden. This doesn't need to
run on every web request in Setup.php.

Bug: T189966
Change-Id: I708131b111cd2ff0e34c3cc8a4b933eff260b3da
2020-03-13 23:45:12 +00:00
jenkins-bot
bc72208733 Merge "OutputPage: Only export wgUserNewMsgRevisionId if non-null" 2020-03-13 23:30:36 +00:00
hmonroy
1426f6354c Enhance passwored reset message
Add a more general message for password reset request submissions.

Bug: T246844
Change-Id: I45e9db992ea113c44f7603081754ac9a575a5da6
2020-03-13 16:18:48 -07:00
jdlrobson
88a44e9eab Deprecate mediawiki.legacy.oldshared
Depends-On: I733cd966c678ede559be1edfb33acac89e96f88d
Depends-On: Ia2fd35431184fc4e2be1a223efae764cdc5ff3e4
Bug: T242177
Change-Id: I8bb209fd9ce93aa556ae6cf0f0db415957edae5e
2020-03-13 23:13:54 +00:00
Timo Tijhof
e08e9609ff OutputPage: Only export wgUserNewMsgRevisionId if non-null
Bug: T53640
Bug: T233676
Bug: T231168
Change-Id: Ia4f07bb90e6ed029d87947e7cf62c5a5d69726e9
2020-03-13 22:27:13 +00:00
jenkins-bot
2c96d9d23e Merge "OutputPage: Remove 'wgMonthNamesShort' from mw.config" 2020-03-13 22:06:25 +00:00
jenkins-bot
bf937f71ba Merge "Updating pear/mail_mime (1.10.6 => 1.10.7)" 2020-03-13 21:05:27 +00:00
Timo Tijhof
490d5c7acd OutputPage: Remove 'wgMonthNamesShort' from mw.config
This internal variable was exported on all page views for all users
for use by jquery.tablesorter.

This feature has not used it since 2013 (commit 65f11938e8),
where it was migrated to use the mediawiki.language module instead.

Bug: T48496
Bug: T219340
Change-Id: I1c9b012d633ffd76a31be5822fd2f4f984e1fb5c
2020-03-13 20:45:20 +00:00
James D. Forrester
d264915bbf package.json: Upgrade acorn to 7.1.1
Change-Id: I8e1d042615d469491a624343c30d3890dd22f701
2020-03-13 13:11:10 -07:00
jenkins-bot
13e8e9d97f Merge ""Enable 'site' and 'site.styles' modules on mobile target (take 2)" 2020-03-13 20:04:33 +00:00
jenkins-bot
799e7433c4 Merge "Setup: Improve section docs to better explain the pre-config setup" 2020-03-13 18:48:28 +00:00
jenkins-bot
86e2984464 Merge "Use unified cross-browser code for search input vendor property overrides" 2020-03-13 17:24:58 +00:00
jenkins-bot
f7ded135ed Merge "Create a PHP version of jquery.spinner" 2020-03-13 17:24:49 +00:00
Ed Sanders
7690bd6f25 Create a PHP version of jquery.spinner
Change-Id: I7622b08ec89525d24a4a1a755ffeee1aace9d382
2020-03-13 18:06:29 +01:00
jenkins-bot
4b5619b34a Merge "mediawiki.confirmCloseWindow: Add missing localisation message" 2020-03-13 16:37:31 +00:00
jenkins-bot
4679e54888 Merge "mediawiki.jqueryMsg: Document and test param cloning behaviour" 2020-03-13 16:35:25 +00:00
Timo Tijhof
9e44459031 Setup: Improve section docs to better explain the pre-config setup
Also remove some comments that didn't help understand the line
below (e.g. "install header callback" above "HeaderCallback::install")

Bug: T189966
Change-Id: Ib0b413c557f83f8f58683515fcdbf1817fe1f661
2020-03-13 16:27:25 +00:00
jenkins-bot
852139c6e4 Merge "Reduce the length of 6 long lines of code" 2020-03-13 10:10:24 +00:00
jenkins-bot
c731a4501c Merge "API: Fix fetching login token from action=query&meta=tokens on private wikis" 2020-03-13 09:59:52 +00:00
jenkins-bot
f9bc3c2155 Merge "XmlDumpWriter: fix blob address output in stubs" 2020-03-13 09:51:10 +00:00
Translation updater bot
d3ab01b13d Localisation updates from https://translatewiki.net.
Change-Id: I666c3c8204deb7295b63e016ae85432966aa1032
2020-03-13 08:06:55 +01:00
jenkins-bot
c628e74b7f Merge "Tests: Remove unneeded uses of global $wgUser" 2020-03-13 04:46:01 +00:00
jenkins-bot
c4551183ed Merge "Make MessageCache::getParserOptions private" 2020-03-13 04:40:08 +00:00
DannyS712
6191976e50 Make MessageCache::getParserOptions private
Bug: T247189
Change-Id: I3f1eda919f9b236c3215f66231c52ce658706bfe
2020-03-13 03:09:32 +00:00