Index: trunk/phase3/includes/specials/SpecialListusers.php |
— | — | @@ -171,10 +171,9 @@ |
172 | 172 | $self = $this->getTitle(); |
173 | 173 | |
174 | 174 | # Form tag |
175 | | - $out = Xml::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript ) ) . |
176 | | - '<fieldset>' . |
177 | | - Xml::element( 'legend', array(), wfMsg( 'listusers' ) ); |
178 | | - $out .= Xml::hidden( 'title', $self->getPrefixedDbKey() ); |
| 175 | + $out = Xml::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript, 'id' => 'mw-listusers-form' ) ) . |
| 176 | + Xml::fieldset( wfMsg( 'listusers' ) ) . |
| 177 | + Xml::hidden( 'title', $self->getPrefixedDbKey() ); |
179 | 178 | |
180 | 179 | # Username field |
181 | 180 | $out .= Xml::label( wfMsg( 'listusersfrom' ), 'offset' ) . ' ' . |
— | — | @@ -198,17 +197,22 @@ |
199 | 198 | $out .= Xml::hidden( 'limit', $this->mLimit ); |
200 | 199 | $out .= Xml::submitButton( wfMsg( 'allpagessubmit' ) ); |
201 | 200 | wfRunHooks( 'SpecialListusersHeader', array( $this, &$out ) ); |
202 | | - $out .= '</fieldset>' . |
| 201 | + $out .= Xml::closeElement( 'fieldset' ) . |
203 | 202 | Xml::closeElement( 'form' ); |
204 | 203 | |
205 | 204 | return $out; |
206 | 205 | } |
207 | 206 | |
| 207 | + /** |
| 208 | + * Get a list of all explicit groups |
| 209 | + * @return array |
| 210 | + */ |
208 | 211 | function getAllGroups() { |
209 | 212 | $result = array(); |
210 | 213 | foreach( User::getAllGroups() as $group ) { |
211 | 214 | $result[$group] = User::getGroupName( $group ); |
212 | 215 | } |
| 216 | + asort( $result ); |
213 | 217 | return $result; |
214 | 218 | } |
215 | 219 | |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -110,6 +110,7 @@ |
111 | 111 | * (bug 14981) Shared repositories can now have display names, located at |
112 | 112 | Mediawiki:Shared-repo-name-REPONAME, where REPONAME is the name in |
113 | 113 | $wgForeignFileRepos |
| 114 | +* Special:ListUsers: Sort list of usergroups by alphabet |
114 | 115 | |
115 | 116 | === Bug fixes in 1.15 === |
116 | 117 | * (bug 16968) Special:Upload no longer throws useless warnings. |