Index: trunk/phase3/includes/specials/SpecialListgrouprights.php |
— | — | @@ -125,6 +125,13 @@ |
126 | 126 | */ |
127 | 127 | private static function formatPermissions( $permissions, $revoke, $add, $remove, $addSelf, $removeSelf ) { |
128 | 128 | global $wgLang; |
| 129 | + |
| 130 | + // prevent double entries if misconfigured, bug 19301 |
| 131 | + $add = array_unique( $add ); |
| 132 | + $remove = array_unique( $remove ); |
| 133 | + $addSelf = array_unique( $addSelf ); |
| 134 | + $removeSelf = array_unique( $removeSelf ); |
| 135 | + |
129 | 136 | $r = array(); |
130 | 137 | foreach( $permissions as $permission => $granted ) { |
131 | 138 | //show as granted only if it isn't revoked to prevent duplicate display of permissions |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -330,6 +330,9 @@ |
331 | 331 | * The display of the language list on the preferences is more comply with the |
332 | 332 | BCP 47 standards. |
333 | 333 | * (bug 19849) Custom X-Vary-Options header now disabled unless $wgUseXVO is set |
| 334 | +* (bug 19301) Duplicates entries in $wgAddGroups, $wgRemoveGroups, |
| 335 | + $wgGroupsAddToSelf and $wgGroupsRemoveFromSelf are no more displayed on |
| 336 | + Special:ListGroupRights |
334 | 337 | |
335 | 338 | == API changes in 1.16 == |
336 | 339 | |