Index: trunk/phase3/includes/specials/SpecialListgrouprights.php |
— | — | @@ -150,25 +150,25 @@ |
151 | 151 | if( $add === true ){ |
152 | 152 | $r[] = wfMsgExt( 'listgrouprights-addgroup-all', array( 'escape' ) ); |
153 | 153 | } else if( is_array( $add ) && count( $add ) ) { |
154 | | - $add = array_unique( $add ); |
| 154 | + $add = array_values( array_unique( $add ) ); |
155 | 155 | $r[] = wfMsgExt( 'listgrouprights-addgroup', array( 'parseinline' ), $wgLang->listToText( array_map( array( 'User', 'makeGroupLinkWiki' ), $add ) ), count( $add ) ); |
156 | 156 | } |
157 | 157 | if( $remove === true ){ |
158 | 158 | $r[] = wfMsgExt( 'listgrouprights-removegroup-all', array( 'escape' ) ); |
159 | 159 | } else if( is_array( $remove ) && count( $remove ) ) { |
160 | | - $remove = array_unique( $remove ); |
| 160 | + $remove = array_values( array_unique( $remove ) ); |
161 | 161 | $r[] = wfMsgExt( 'listgrouprights-removegroup', array( 'parseinline' ), $wgLang->listToText( array_map( array( 'User', 'makeGroupLinkWiki' ), $remove ) ), count( $remove ) ); |
162 | 162 | } |
163 | 163 | if( $addSelf === true ){ |
164 | 164 | $r[] = wfMsgExt( 'listgrouprights-addgroup-self-all', array( 'escape' ) ); |
165 | 165 | } else if( is_array( $addSelf ) && count( $addSelf ) ) { |
166 | | - $addSelf = array_unique( $addSelf ); |
| 166 | + $addSelf = array_values( array_unique( $addSelf ) ); |
167 | 167 | $r[] = wfMsgExt( 'listgrouprights-addgroup-self', array( 'parseinline' ), $wgLang->listToText( array_map( array( 'User', 'makeGroupLinkWiki' ), $addSelf ) ), count( $addSelf ) ); |
168 | 168 | } |
169 | 169 | if( $removeSelf === true ){ |
170 | 170 | $r[] = wfMsgExt( 'listgrouprights-removegroup-self-all', array( 'escape' ) ); |
171 | 171 | } else if( is_array( $removeSelf ) && count( $removeSelf ) ) { |
172 | | - $removeSelf = array_unique( $removeSelf ); |
| 172 | + $removeSelf = array_values( array_unique( $removeSelf ) ); |
173 | 173 | $r[] = wfMsgExt( 'listgrouprights-removegroup-self', array( 'parseinline' ), $wgLang->listToText( array_map( array( 'User', 'makeGroupLinkWiki' ), $removeSelf ) ), count( $removeSelf ) ); |
174 | 174 | } |
175 | 175 | if( empty( $r ) ) { |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -678,6 +678,8 @@ |
679 | 679 | * (bug 21803) Special:MyContributions now keeps the query string parameters |
680 | 680 | * Redirecting special pages now keep query string paramters set to "0" (e.g. |
681 | 681 | for namespace) |
| 682 | +* (bug 20765) Special:ListGroupRights no longer misses addables and removables |
| 683 | + groups if there are duplicate entries |
682 | 684 | |
683 | 685 | == API changes in 1.16 == |
684 | 686 | |