From 5412e5ae07b2dda205a477ea5da56f2fdef4445a Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 15 Aug 2006 19:24:22 +0000 Subject: [PATCH] * (bug 1866) Improve navigation on Special:Listusers; user now a starting point as with Special:Allpages, rather than a pure limit. --- RELEASE-NOTES | 2 ++ includes/SpecialListusers.php | 8 ++++---- languages/MessagesEn.php | 3 +++ 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index be0f65a7ed..d9ee6df9e6 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/includes/SpecialListusers.php b/includes/SpecialListusers.php index c1cb8f8555..db6434e05a 100644 --- a/includes/SpecialListusers.php +++ b/includes/SpecialListusers.php @@ -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; } diff --git a/languages/MessagesEn.php b/languages/MessagesEn.php index 202a6b40f0..4336c77005 100644 --- a/languages/MessagesEn.php +++ b/languages/MessagesEn.php @@ -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', -- 2.20.1