Index: branches/REL1_6/phase3/includes/SpecialUserrights.php |
— | — | @@ -145,7 +145,10 @@ |
146 | 146 | global $wgOut, $wgUser; |
147 | 147 | |
148 | 148 | $user = User::newFromName($username); |
149 | | - if( is_null( $user ) || $user->getID() == 0 ) { |
| 149 | + if( is_null( $user ) ) { |
| 150 | + $wgOut->addWikiText( wfMsg( 'nouserspecified' ) ); |
| 151 | + return; |
| 152 | + } elseif( $user->getID() == 0 ) { |
150 | 153 | $wgOut->addWikiText( wfMsg( 'nosuchusershort', wfEscapeWikiText( $username ) ) ); |
151 | 154 | return; |
152 | 155 | } |
Index: branches/REL1_6/phase3/RELEASE-NOTES |
— | — | @@ -12,6 +12,7 @@ |
13 | 13 | * (bug 5957) Update for Hebrew language (he) |
14 | 14 | * (bug 6025) SpecialImport: wrong message when no file selected |
15 | 15 | * (bug 6015) EditPage: add spacing in the boxes "edit is minor" and "watch this" |
| 16 | +* (bug 6018) Userrights: new message when no user specified ('nouserspecified') |
16 | 17 | |
17 | 18 | == MediaWiki 1.6.5 == |
18 | 19 | |
Index: branches/REL1_6/phase3/languages/Messages.php |
— | — | @@ -399,6 +399,7 @@ |
400 | 400 | 'loginsuccess' => "'''You are now logged in to {{SITENAME}} as \"$1\".'''", |
401 | 401 | 'nosuchuser' => 'There is no user by the name "$1". Check your spelling, or create a new account.', |
402 | 402 | 'nosuchusershort' => 'There is no user by the name "$1". Check your spelling.', |
| 403 | +'nouserspecified' => 'You have to specify a username.', |
403 | 404 | 'wrongpassword' => 'Incorrect password entered. Please try again.', |
404 | 405 | 'wrongpasswordempty' => 'Password entered was blank. Please try again.', |
405 | 406 | 'mailmypassword' => 'E-mail password', |