Index: trunk/phase3/includes/SpecialUserrights.php |
— | — | @@ -247,49 +247,6 @@ |
248 | 248 | return count( $out ) > 0 |
249 | 249 | ? implode( ' ', $out ) |
250 | 250 | : wfMsgExt( 'userrights-available-none', 'parseinline' ); |
251 | | - |
252 | | - |
253 | | - $groups = $wgUser->getEffectiveGroups(); |
254 | | - foreach( $groups as $group ) { |
255 | | - if( $this->changeableByGroup( $group ) == array( |
256 | | - 'add' => array(), |
257 | | - 'remove' => array() |
258 | | - ) ) { |
259 | | - // Can't add or remove anything, ignore this group |
260 | | - $groups = array_diff( $groups, array( $group ) ); |
261 | | - } |
262 | | - } |
263 | | - $grouplists = array( $groups ); |
264 | | - list( $grouplists[1], $grouplists[2] ) = array_values( $this->changeableGroups() ); |
265 | | - |
266 | | - |
267 | | - |
268 | | - // Now format them nicely for display (yay mutable variables? I'm sick |
269 | | - // of thinking up new names) |
270 | | - foreach( $grouplists as &$list ) { |
271 | | - if( $list == array() ) { |
272 | | - $list = wfMsgExt( 'userrights-list-nogroups', 'parseinline' ); |
273 | | - } else { |
274 | | - $list = wfMsgExt( |
275 | | - 'userrights-list-groups', |
276 | | - 'parseinline', |
277 | | - count( $list ), |
278 | | - implode( |
279 | | - $list, |
280 | | - wfMsgHtml( 'userrights-list-separator' ) |
281 | | - ) |
282 | | - ); |
283 | | - } |
284 | | - } |
285 | | - |
286 | | - return wfMsgExt( |
287 | | - 'userrights-list', |
288 | | - 'parse', |
289 | | - $grouplists[0], |
290 | | - $grouplists[1], |
291 | | - $grouplists[2] |
292 | | - ); |
293 | | - |
294 | 251 | } |
295 | 252 | |
296 | 253 | /** |