Wikimedia

Make GlobalUsersPager properly support gender

This is a follow-up task to https://phabricator.wikimedia.org/rECAU7bad38dc391635c574fe902a2e1b63c2c1cd1404 . Currently Special:GlobalUsers passes '#' as the username for gender in groups. This seems wrong. This means that the group name listed will be the neutral version, even if the user selected masculine or feminine in their preferences.

In the file /includes/specials/SpecialGlobalUsers.php of the CentralAuth extension:

You should modify GlobalUsersPager::getUserGroups to take a second parameter $userName . It should pass this parameter to UserGroupMembership::getLink as the fourth argument (instead of #).

In GlobalUserPager::formatRow you should modify the call to $this->getUserGroups() to add a second parameter, which should be $row->gu_name.

Task tags

  • i18n
  • php

Students who completed this task

Rafid Aslam

Task type

  • code Code
close

2017