$shortTitle != $wgUser->getName())
{
$other = User::newFromName($shortTitle);
- $other->setID(User::idFromName($shortTitle));
$other->setNewtalk(1);
$other->saveNewtalk();
}
return;
}
$nu = User::newFromName( $nt->getText() );
- $id = $nu->idForName();
- if ( 0 == $id ) {
+ if ( 0 == $nu->getID() ) {
$wgOut->errorpage( "noemailtitle", "noemailtext" );
return;
}
- $nu->setID( $id );
+
$address = $nu->getEmail();
if ( ( false === strpos( $address, "@" ) ) ||
$wgOut->addHTML('<p>'.wfMsg('nosuchusershort',$username).'</p>');
return;
}
- $id = $u->idForName();
- if($id == 0) {
+
+ if($u->getID() == 0) {
$wgOut->addHTML('<p>'.wfMsg('nosuchusershort',$username).'</p>');
return;
}
- $u->setID( $id );
$groups = $u->getGroups();
$logcomment = ' ';
$wgOut->addHTML('<p>'.wfMsg('nosuchusershort',$username).'</p>');
return;
}
- $id = $user->idForName();
- if($id == 0) {
+
+ if($user->getID() == 0) {
$wgOut->addHTML('<p>'.wfMsg('nosuchusershort',$username).'</p>');
return;
}
- $user->setID( $id );
$groups = $user->getGroups();
$this->mainLoginForm( wfMsg( 'noname' ) );
return;
}
- $id = $u->idForName();
- if ( 0 == $id ) {
+ if ( 0 == $u->getID() ) {
global $wgAuth;
/**
* If the external authentication plugin allows it,
return;
}
} else {
- $u->setId( $id );
$u->loadFromDatabase();
}
if (!$u->checkPassword( $this->mPassword )) {
$this->mainLoginForm( wfMsg( 'noname' ) );
return;
}
- $id = $u->idForName();
- if ( 0 == $id ) {
+ if ( 0 == $u->getID() ) {
$this->mainLoginForm( wfMsg( 'nosuchuser', $u->getName() ) );
return;
}
- $u->setId( $id );
+
$u->loadFromDatabase();
$error = $this->mailPasswordInternal( $u );
return NULL;
} else {
$u->setName( $t->getText() );
+ $u->setId( $u->idFromName( $t->getText() ) );
return $u;
}
}