* (bug 5187) Allow programmatically bypassing username validation, for scripts
* (bug 6025) SpecialImport: wrong message when no file selected
* (bug 6015) EditPage: add spacing in the boxes "edit is minor" and "watch this"
+* (bug 6018) Userrights: new message when no user specified ('nouserspecified')
== Compatibility ==
global $wgOut, $wgUser;
$user = User::newFromName($username);
- if( is_null( $user ) || $user->getID() == 0 ) {
+ if( is_null( $user ) ) {
+ $wgOut->addWikiText( wfMsg( 'nouserspecified' ) );
+ return;
+ } elseif( $user->getID() == 0 ) {
$wgOut->addWikiText( wfMsg( 'nosuchusershort', wfEscapeWikiText( $username ) ) );
return;
}
'loginsuccess' => "'''You are now logged in to {{SITENAME}} as \"$1\".'''",
'nosuchuser' => 'There is no user by the name "$1". Check your spelling, or create a new account.',
'nosuchusershort' => 'There is no user by the name "$1". Check your spelling.',
+'nouserspecified' => 'You have to specify a username.',
'wrongpassword' => 'Incorrect password entered. Please try again.',
'wrongpasswordempty' => 'Password entered was blank. Please try again.',
'mailmypassword' => 'E-mail password',