Commit graph

104553 commits

Author SHA1 Message Date
jdlrobson
120ecc6d1b links is flat array
Pass a valid key to makeLink rather than an integer (index)
which may result in an exception.

Bug: T286040
Change-Id: Ic69ec102caec982e65e264f5812ac15df5168008
2021-07-13 18:00:16 +00:00
jenkins-bot
660180290c Merge "Make user-menu list items produce HTML consistent with other menus" 2021-07-01 22:46:45 +00:00
jenkins-bot
bc2665cb6d Merge "Provide preference to make skins responsive" 2021-07-01 22:46:07 +00:00
Ammarpad
a03354006e Provide preference to make skins responsive
Bug: T285402
Change-Id: I4e567199a92c0492dac0561a5c7844f6c5c239e6
2021-07-01 22:18:27 +01:00
jenkins-bot
afb4ea82af Merge "WikiPage: update mTitle in updateRevisionOn()" 2021-07-01 20:47:02 +00:00
jdlrobson
05a02a39fb Make user-menu list items produce HTML consistent with other menus
The `class` property on menu items applies to the <li> tag however
in the case of the personal tools menu for historic reasons it applies
to the anchor tag. To bring these in line, a new optional parameter
is added that is utilized inside SkinMustache. Given the method is
final we do not need to worry about skins extending this behaviour.

This is needed for the mw-ui-icon change as we want to separate
the <a> tag with the mw-ui-icon class from the padding of its container
on the <li> item.

This also makes use the "new" class is added to the userpage link rather
than the list item by using the link-class property. This does not impact
existing skins as the impact is the same before and after this change.

This will temporarily break skins making use of user-menu, but this was
introduced in 1.37 which has not been released yet, so it's okay to
introduce breaking changes. It is currently only used by Vector

Bug: T285960
Change-Id: If399dfff9bbdd3b03b2ca702face3ec5164bef11
2021-07-01 12:37:51 -07:00
Petr Pchelko
9d6403f9fc Consistently normalize Title::mFragment before setting
Bug: T285951
Change-Id: Ifa04da54da8acdede6258330110d49453a8fffc3
2021-07-01 11:20:05 -07:00
Translation updater bot
65d515a198 Localisation updates from https://translatewiki.net.
Change-Id: If3fbb60b5bc562a6a47d272bc3f49d454cacb1b1
2021-07-01 07:57:28 +02:00
jenkins-bot
d88ba96371 Merge "api: Replace deprecated User::getAllGroups in ApiUserrights" 2021-07-01 03:45:24 +00:00
jenkins-bot
e739145824 Merge "api: Replace deprecated Hooks::isRegistered in ApiQueryBase" 2021-07-01 03:36:08 +00:00
jenkins-bot
372728368c Merge "api: Replace deprecated WikiPage::factory in ApiParse" 2021-07-01 03:36:02 +00:00
jenkins-bot
e57624a78f Merge "api: Replace deprecated Hooks::run in ApiParse" 2021-07-01 03:27:19 +00:00
jenkins-bot
e3bb282c9e Merge "api: Replace UserCache in ApiUnblock" 2021-07-01 03:27:14 +00:00
jenkins-bot
76ac195175 Merge "api: Inject services into ApiEditPage" 2021-07-01 03:26:28 +00:00
Umherirrender
52a980fc0f api: Replace deprecated Hooks::run in ApiParse
Similar to OutputPageCheckLastModifiedHook,
which is also part of the ApiHookRunner

Follow-up: I5b41251ad95ea58153fb7e32dba62d407f0844ac
Change-Id: I439a208ea713e44b9603053987d9933ea6167c3a
2021-07-01 03:06:03 +00:00
jenkins-bot
599f39015c Merge "filerepo: Make $wgUploadThumbnailRenderMap work with multipage files" 2021-07-01 00:21:57 +00:00
jenkins-bot
d4bf88dfc7 Merge "rdbms: improve caching logic for "rdbms-server-readonly" keys" 2021-07-01 00:01:21 +00:00
jenkins-bot
f86aaee873 Merge "objectcache: tweak WANObjectCache sister key documentation" 2021-06-30 23:46:35 +00:00
jenkins-bot
406d265978 Merge "Don't access MWServices prematurely in Maintenence.php" 2021-06-30 23:44:01 +00:00
Umherirrender
fdc64ef20c api: Replace UserCache in ApiUnblock
Inject and use the new UserIdentityLookup service

Change-Id: I1e5cbae12115423a82316d7234b5cfc02d27dd3b
2021-06-30 23:08:01 +02:00
Petr Pchelko
e73769335d Don't access MWServices prematurely in Maintenence.php
In case of the referenced addWiki bug, the following was happening:
1. MWServices were initialized before Setup.php is complete
and before extensions were loaded. Deprecation warning was emitted.
2. onMWServices hook was run, thus hook container was created, but
without any extensions loaded.
3. When global MWServices instance was allowed, and services were
reset, hook container was salvaged. When that happens, already
instantiated handlers are preserved, so onMediaWikiServices handlers
(none at this point) were preserved.
4. GlobalPreferences refefine PreferencesFactory, but it was not
actually redefined, since onMediaWikiServices handler array was
salvaged in 3
5. The rest of the hooks work ok, since they are dynamically initialized
after extensions were loaded.
6. One of the hook handlers, implemented in GlobalPreferences,
expected PreferencesFactory to be redefined, but it was not.
7. Boom!

Bug: T285894
Bug: T275453
Change-Id: I8b16529e93dc12484e3501fab4fd34fca70114ea
2021-06-30 13:51:23 -07:00
Umherirrender
576ccf392d api: Inject services into ApiEditPage
Bug: T259960
Change-Id: Idf6eee7fed14495a8ab6e05a768fcb28178a4c2f
2021-06-30 22:30:28 +02:00
Umherirrender
3b327cc98b api: Replace deprecated User::getAllGroups in ApiUserrights
Change-Id: I4f8807b4154fd2434201b945b99585e926cb2cbd
2021-06-30 21:20:56 +02:00
jenkins-bot
f39b88ed7b Merge "CentralIdLookup: accept Authority for audiences checks instead of User" 2021-06-30 19:15:33 +00:00
jenkins-bot
3f03d454f3 Merge "api: Replace User::whoIs in ApiBlock" 2021-06-30 19:15:27 +00:00
Umherirrender
7c21ba7592 api: Replace deprecated Hooks::isRegistered in ApiQueryBase
Avoid global HookContainer and use the local one

Change-Id: I6448915f478015d7f790e1fc0f6c3653917a138f
2021-06-30 20:56:55 +02:00
Petr Pchelko
cabfe6270b CentralIdLookup: accept Authority for audiences checks instead of User
Although in theory this could be backwards-incompatible, in practice
returning Authority from checkAudience is enough for the only extension
that extends CentralIdLookup, CentralAuth

Change-Id: I976dc854bf26b202347c3b47e956b85bbee156de
2021-06-30 11:55:18 -07:00
Umherirrender
82d7d70987 api: Replace deprecated WikiPage::factory in ApiParse
Change-Id: I9e9b223c29ba7a53a02ed82314df71c6a46e4126
2021-06-30 20:53:31 +02:00
Umherirrender
9a3c1add97 api: Replace User::whoIs in ApiBlock
Inject and use the new UserIdentityLookup service

Change-Id: I56b0ba599b5e86f568a5d7db6d27776ba52e1dc5
2021-06-30 20:31:54 +02:00
Timo Tijhof
f602a585ad DefaultSettings: Improve $wgUpdateCompatibleMetadata docs
The old description had some grammatical issues, and did not explain
what it influences or when. Namely, that it considered during manual
purges and overall rebuilds/refreshes. (E.g. it does not cause
update something directly on page views, nor does it kick-off a job
that will upgrade all existing files or something like that.)

Change-Id: Ia2d3f17a9f7c05f816004c619eb9ff1ec45b019b
2021-06-30 17:48:27 +00:00
jenkins-bot
7812403be8 Merge "Hard-deprecate some MWNamespace methods" 2021-06-30 16:11:44 +00:00
jenkins-bot
c309a5dd25 Merge "Remove the fallback for create rights (covered in PM edit rights check). Remove key to i18n message, no longer being used." 2021-06-30 15:16:39 +00:00
jenkins-bot
8e20e195eb Merge "Authority: expose user block info" 2021-06-30 15:12:06 +00:00
Alexander Vorwerk
62c748093e Hard-deprecate some MWNamespace methods
MWNamespace has been deprecated in favor of the NamespaceInfo
service in 1.34 and should no longer be used.

All methods that are hard-deprecated in this patch are unused.

Also adding @deprecated to all methods so it's more clear that
they are deprecated. The @deprecated at the beginning of the
class can easily be overlooked.

Change-Id: Ic5726297807d7959453407267e852f7be96a3e05
2021-06-30 17:05:04 +02:00
Roman Stolar
6ebaa5caf6 Remove the fallback for create rights (covered in PM edit rights check).
Remove key to i18n message, no longer being used.

Bug: T272079
Change-Id: Id6566e5241b06ba377c2eca083221ee02556365f
2021-06-30 17:30:30 +03:00
jenkins-bot
0f53ac4a1c Merge "ApiParse: inject services" 2021-06-30 13:42:26 +00:00
daniel
b3b70624c9 Authority: expose user block info
Expose info about user blocks from Authority. This allows calling code
to provide more detailed information to the user about why they are
denied some action on the wiki.

Bug: T271494
Change-Id: Ia84e469888866d72752aad355292666c31e12bad
2021-06-30 13:42:21 +02:00
jenkins-bot
fbe639c1d1 Merge "Use correct SI prefix "zetta" instead of "zeta"" 2021-06-30 11:16:58 +00:00
Alexander Vorwerk
9f985e643f ApiParse: inject services
Bug: T259960
Change-Id: I99813c65ef4a9bf469388d5836a57c12bc389e93
2021-06-30 12:53:13 +02:00
Translation updater bot
7a7e9164c1 Localisation updates from https://translatewiki.net.
Change-Id: I8dadb65130e909b96dfe83f4300f59211a84542e
2021-06-30 08:16:32 +02:00
jenkins-bot
29d38f949d Merge "Improvements to fixMergeHistoryCorruption.php" 2021-06-30 04:13:47 +00:00
jenkins-bot
c4eaeb329b Merge "api: Inject services into ApiOpenSearch" 2021-06-30 01:11:28 +00:00
jenkins-bot
89b080bd24 Merge "api: Inject services into ApiDelete" 2021-06-30 01:10:42 +00:00
jenkins-bot
51461fa6fa Merge "Add --sleep option to refreshImageMetadata.php" 2021-06-29 23:29:33 +00:00
jenkins-bot
42f79b527b Merge "In recordOldUpload, use source path when computing properties" 2021-06-29 23:22:05 +00:00
jenkins-bot
200c6e160a Merge "api: Inject services into ApiSetPageLanguage" 2021-06-29 23:00:28 +00:00
Umherirrender
1fa849bd11 api: Inject services into ApiSetPageLanguage
Bug: T259960
Change-Id: I528bfbaf84a46248ba69533780374aebb5cdd542
2021-06-29 23:13:33 +02:00
Umherirrender
68b3b44398 api: Inject services into ApiDelete
Bug: T259960
Change-Id: I8d3956edfddfbd77411c47d003ca7a0549086a2b
2021-06-29 22:48:17 +02:00
jenkins-bot
9ffdc0dc1a Merge "api: Inject services into ApiImageRotate" 2021-06-29 20:38:10 +00:00
Umherirrender
1d8fdc20fa api: Inject services into ApiOpenSearch
Bug: T259960
Change-Id: Iaf834da5aad020fbfc2850ff786b23c134717a01
2021-06-29 20:26:58 +00:00