Yes, now actually ditch the old code. :D
authorRob Church <robchurch@users.mediawiki.org>
Sat, 30 Jun 2007 04:06:24 +0000 (04:06 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Sat, 30 Jun 2007 04:06:24 +0000 (04:06 +0000)
includes/SpecialUserrights.php

index 57b43c3..f69a128 100644 (file)
@@ -247,49 +247,6 @@ class UserrightsForm extends HTMLForm {
                return count( $out ) > 0
                        ? implode( ' ', $out )
                        : wfMsgExt( 'userrights-available-none', 'parseinline' );
-               
-               
-               $groups = $wgUser->getEffectiveGroups();
-               foreach( $groups as $group ) {
-                       if( $this->changeableByGroup( $group ) == array(
-                               'add' => array(),
-                               'remove' => array()
-                       ) ) {
-                               // Can't add or remove anything, ignore this group
-                               $groups = array_diff( $groups, array( $group ) );
-                       }
-               }
-               $grouplists = array( $groups );
-               list( $grouplists[1], $grouplists[2] ) = array_values( $this->changeableGroups() );
-               
-               
-               
-               // Now format them nicely for display (yay mutable variables? I'm sick
-               // of thinking up new names)
-               foreach( $grouplists as &$list ) {
-                       if( $list == array() ) {
-                               $list = wfMsgExt( 'userrights-list-nogroups', 'parseinline' );
-                       } else {
-                               $list = wfMsgExt(
-                                       'userrights-list-groups',
-                                       'parseinline',
-                                       count( $list ),
-                                       implode(
-                                               $list,
-                                               wfMsgHtml( 'userrights-list-separator' )
-                                       )
-                               );
-                       }
-               }
-               
-               return wfMsgExt(
-                       'userrights-list',
-                       'parse',
-                       $grouplists[0],
-                       $grouplists[1],
-                       $grouplists[2]
-               );
-
        }
 
        /**