From: umherirrender Date: Sat, 7 Jul 2012 15:31:04 +0000 (+0200) Subject: (bug 38093) Gender of changed user groups missing in log X-Git-Tag: 1.31.0-rc.0~23046^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=0aa5c8f70a151cf6e936227db896ffd2da6e678a;p=lhc%2Fweb%2Fwiklou.git (bug 38093) Gender of changed user groups missing in log Change-Id: I1d2c5e1ae3a81ea5ab0e081ecbf74f7c44982291 --- diff --git a/RELEASE-NOTES-1.20 b/RELEASE-NOTES-1.20 index 423e44f3ed..7b073aa162 100644 --- a/RELEASE-NOTES-1.20 +++ b/RELEASE-NOTES-1.20 @@ -158,6 +158,7 @@ upgrade PHP if you have not done so prior to upgrading MediaWiki. * (bug 38152) jquery.tablesorter: Use .data() instead of .attr(), so that live values are used instead of just the fixed values from when the tablesorter was initialized. +* (bug 38093) Gender of changed user groups missing in Special:Log/rights === API changes in 1.20 === * (bug 34316) Add ability to retrieve maximum upload size from MediaWiki API. diff --git a/includes/logging/LogPage.php b/includes/logging/LogPage.php index 3891f3416c..351e9f4343 100644 --- a/includes/logging/LogPage.php +++ b/includes/logging/LogPage.php @@ -255,9 +255,12 @@ class LogPage { $rightsnone = wfMsgExt( 'rightsnone', array( 'parsemag', 'language' => $langObj ) ); if( $skin ) { + $username = $title->getText(); foreach ( $params as &$param ) { $groupArray = array_map( 'trim', explode( ',', $param ) ); - $groupArray = array_map( array( 'User', 'getGroupMember' ), $groupArray ); + foreach( $groupArray as &$group ) { + $group = User::getGroupMember( $group, $username ); + } $param = $wgLang->listToText( $groupArray ); } }