Index: trunk/phase3/includes/SpecialListusers.php |
— | — | @@ -122,31 +122,23 @@ |
123 | 123 | $out = Xml::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript ) ) . |
124 | 124 | '<fieldset>' . |
125 | 125 | Xml::element( 'legend', array(), wfMsg( 'listusers' ) ); |
126 | | - |
127 | | - # Title |
128 | 126 | $out .= Xml::hidden( 'title', $self->getPrefixedUrl() ); |
129 | 127 | |
130 | 128 | # Username field |
131 | 129 | $out .= Xml::label( wfMsg( 'listusersfrom' ), 'offset' ) . ' ' . |
132 | 130 | Xml::input( 'username', 20, $this->requestedUser, array( 'id' => 'offset' ) ) . ' '; |
133 | 131 | |
134 | | - if( $this->mLimit ) |
135 | | - $out .= Xml::hidden( 'limit', $this->mLimit ); |
136 | | - |
137 | 132 | # Group drop-down list |
138 | 133 | $out .= Xml::label( wfMsg( 'group' ), 'group' ) . ' ' . |
139 | 134 | Xml::openElement('select', array( 'name' => 'group', 'id' => 'group' ) ) . |
140 | | - Xml::option( wfMsg( 'group-all' ), '' ); # Item for "all groups" |
141 | | - |
142 | | - $groups = User::getAllGroups(); |
143 | | - foreach( $groups as $group ) { |
144 | | - $attribs = array( 'value' => $group ); |
145 | | - $attribs['selected'] = ( $group == $this->requestedGroup ) ? 'selected' : ''; |
146 | | - $out .= Xml::option( User::getGroupName( $group ), $attribs['value'], $attribs['selected'] ); |
147 | | - } |
| 135 | + Xml::option( wfMsg( 'group-all' ), '' ); |
| 136 | + foreach( User::getAllGroups() as $group ) |
| 137 | + $out .= Xml::option( User::getGroupName( $group ), $group, $group == $this->requestedGroup ); |
148 | 138 | $out .= Xml::closeElement( 'select' ) . ' '; |
149 | 139 | |
150 | 140 | # Submit button and form bottom |
| 141 | + if( $this->mLimit ) |
| 142 | + $out .= Xml::hidden( 'limit', $this->mLimit ); |
151 | 143 | $out .= Xml::submitButton( wfMsg( 'allpagessubmit' ) ) . |
152 | 144 | '</fieldset>' . |
153 | 145 | Xml::closeElement( 'form' ); |