* (bug 1866) Improve navigation on Special:Listusers; user now a starting
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 15 Aug 2006 19:24:22 +0000 (19:24 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 15 Aug 2006 19:24:22 +0000 (19:24 +0000)
  point as with Special:Allpages, rather than a pure limit.

RELEASE-NOTES
includes/SpecialListusers.php
languages/MessagesEn.php

index be0f65a..d9ee6df 100644 (file)
@@ -128,6 +128,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Revamped Special:Imagelist
 * (bug 7000) updated MessagesPl.php
 * (bug 6946) Fix unexpected behavior change with GET hits to Special:Export
+* (bug 1866) Improve navigation on Special:Listusers; user now a starting
+  point as with Special:Allpages, rather than a pure limit.
 
 
 == Languages updated ==
index c1cb8f8..db6434e 100644 (file)
@@ -93,7 +93,7 @@ class ListUsersPage extends QueryPage {
                $out .= wfCloseElement( 'select' ) . ' ';;# . wfElement( 'br' );
 
                # Username field
-               $out .= wfElement( 'label', array( 'for' => 'username' ), wfMsg( 'specialloguserlabel' ) ) . ' ';
+               $out .= wfElement( 'label', array( 'for' => 'username' ), wfMsg( 'listusersfrom' ) ) . ' ';
                $out .= wfElement( 'input', array( 'type' => 'text', 'id' => 'username', 'name' => 'username',
                                                        'value' => $this->requestedUser ) ) . ' ';
 
@@ -138,19 +138,19 @@ class ListUsersPage extends QueryPage {
        }
 
        function userQueryWhere( &$dbr ) {
-               $conds = $this->userQueryConditions();
+               $conds = $this->userQueryConditions( $dbr );
                return empty( $conds )
                        ? ""
                        : "WHERE " . $dbr->makeList( $conds, LIST_AND );
        }
 
-       function userQueryConditions() {
+       function userQueryConditions( $dbr ) {
                $conds = array();
                if( $this->requestedGroup != '' ) {
                        $conds['ug_group'] = $this->requestedGroup;
                }
                if( $this->requestedUser != '' ) {
-                       $conds['user_name'] = $this->requestedUser;
+                       $conds[] = 'user_name >= ' . $dbr->addQuotes( $this->requestedUser );
                }
                return $conds;
        }
index 202a6b4..4336c77 100644 (file)
@@ -1322,6 +1322,9 @@ You can narrow down the view by selecting a log type, the user name, or the affe
 'allpagesprefix'       => 'Display pages with prefix:',
 'allpagesbadtitle'     => 'The given page title was invalid or had an inter-language or inter-wiki prefix. It may contain one more characters which cannot be used in titles.',
 
+# Special:Listusers
+'listusersfrom' => 'Display users starting at:',
+
 # E this user
 #
 'mailnologin'  => 'No send address',