mediawiki-extensions-Echo/includes
thiemowmde eaa1fea890 Fix incomplete gender support for user group changes
This affects primarily the message
"notification-header-user-rights-add-only" which is very priminently
seen by every new editor that made their first few edits and gets
promoted to the next user group a few days later. Turns out the code
was just incomplete. All the information about the user and their
gender is already there, it was just not forwarded correctly.

Notice there are two messages:
* "group-…" messages don't have gender support. This is the (ideally)
  gender neutral name of the group. Meant to be used as e.g. section
  heading for a list of users.
* "group-…-member" is the same with gender support. To be used in all
  contexts that are about a single, specific user with known gender.
  Which is exactly what's happening here.

Turns out we can even use a neat convenience function from the
Language class that does exactly what we need.

I can't tell why but the array_values is apparently critical.
Originally added via I49b5fe5. It can't hurt so I keep it.

Bug: T368249
Change-Id: I53c028375d77c93f399538fd38aa8f8af30934b0
2024-06-28 11:49:10 +02:00
..
Api More specific type hints and type declarations 2024-05-16 10:32:19 +02:00
Cache Migrate to IReadableDatabase::newSelectQueryBuilder 2024-04-28 01:05:10 +02:00
Controller More specific type hints and type declarations 2024-05-16 10:32:19 +02:00
Formatters Fix incomplete gender support for user group changes 2024-06-28 11:49:10 +02:00
Gateway Migrate to IReadableDatabase::newSelectQueryBuilder 2024-04-28 01:05:10 +02:00
Hooks Use namespaced classes 2023-12-11 16:39:00 +01:00
Iterator Namespace classes that need aliases 2023-08-18 19:00:41 +01:00
Jobs Inject services into NotificationDeleteJob 2024-04-04 14:56:38 +00:00
Mapper More specific type hints and type declarations 2024-05-16 10:32:19 +02:00
Model Swap uses of Title::GAID_FOR_UPDATE for IDBAccessObject::READ_LATEST 2024-01-26 13:37:47 -05:00
OOUI Move EchoOOUI namespace to MediaWiki\Extension\Notifications\OOUI 2022-04-25 13:55:57 +01:00
Push More specific type hints and type declarations 2024-05-16 10:32:19 +02:00
Special Use namespaced classes 2024-06-12 20:31:47 +02:00
ArrayList.php Namespace some more classes 2023-08-18 21:24:59 +01:00
AttributeManager.php More specific type hints and type declarations 2024-05-16 10:32:19 +02:00
Bundleable.php Namespace some more classes 2023-08-18 21:24:59 +01:00
Bundler.php Namespace some more classes 2023-08-18 21:24:59 +01:00
CachedList.php Namespace some more classes 2023-08-18 21:24:59 +01:00
ConfigNames.php Avoid use of globals for reading config in hooks 2023-10-29 15:41:21 +05:30
ContainmentList.php Namespace some more classes 2023-08-18 21:24:59 +01:00
ContainmentSet.php Use ObjectCacheFactory instead of ObjectCache method 2024-06-26 10:19:13 +01:00
DataOutputFormatter.php Use namespaced classes 2024-06-12 20:31:47 +02:00
DbFactory.php Replace deprecated usage of wfGetDB 2024-02-13 20:22:33 +01:00
DeferredMarkAsDeletedUpdate.php Use namespaced classes 2023-12-11 16:39:00 +01:00
DiffGroup.php Namespace a few more classes 2023-08-18 21:48:15 +01:00
DiffParser.php Namespace a few more classes 2023-08-18 21:48:15 +01:00
DiscussionParser.php Use namespaced classes 2024-06-12 20:31:47 +02:00
EmailBatch.php Migrate to IReadableDatabase::newSelectQueryBuilder 2024-04-28 01:05:10 +02:00
EmailFormat.php Namespace some more classes 2023-08-18 21:24:59 +01:00
EmailFrequency.php Namespace some more classes 2023-08-18 21:24:59 +01:00
ForeignNotifications.php More specific type hints and type declarations 2024-05-16 10:32:19 +02:00
ForeignWikiRequest.php Use namespaced classes 2024-06-12 20:31:47 +02:00
Hooks.php Use namespaced classes 2024-06-12 20:31:47 +02:00
Notifier.php Add API module for sending notifications 2024-05-04 17:43:39 +03:00
NotifUser.php Use namespaced classes 2023-12-11 16:39:00 +01:00
OnWikiList.php Replace some moved Title class uses, now MediaWiki\Title\Title 2023-08-19 16:43:18 +02:00
ResourceLoaderEchoImageModule.php Replace empty() with falsy check 2023-10-22 11:12:41 +02:00
SchemaHooks.php Use namespaced classes 2024-06-12 20:31:47 +02:00
SeenTime.php More specific type hints and type declarations 2024-05-16 10:32:19 +02:00
Services.php And a few more namespaced classes... 2023-08-18 22:27:18 +01:00
SummaryParser.php More specific type hints and type declarations 2024-05-16 10:32:19 +02:00
SuppressionRowUpdateGenerator.php More specific type hints and type declarations 2024-05-16 10:32:19 +02:00
UnreadWikis.php Migrate to IReadableDatabase::newSelectQueryBuilder 2024-04-28 01:05:10 +02:00
UserLocator.php More specific type hints and type declarations 2024-05-16 10:32:19 +02:00
UserMergeHooks.php Revert "Suppress phan errors caused by UserMerge undeploy" 2024-05-14 08:40:50 +00:00