settings changed
* (bug 22606) The body of e-mail address confirmation message is now different
when the address changed
+* (bug 22664) Special:Userrights now accepts '0' as a valid user name
== API changes in 1.17 ==
// any groups, it's a bit silly to give them the user search prompt.
global $wgUser, $wgRequest, $wgOut;
- if( $par ) {
+ if( $par !== null ) {
$this->mTarget = $par;
} else {
$this->mTarget = $wgRequest->getVal( 'user' );
$available = $this->changeableGroups();
- if ( !$this->mTarget ) {
+ if ( $this->mTarget === null ) {
/*
* If the user specified no target, and they can only
* edit their own groups, automatically set them as the
}
// show some more forms
- if( $this->mTarget ) {
+ if( $this->mTarget !== null ) {
$this->editUserGroupsForm( $this->mTarget );
}
}
}
}
- if( $name == '' ) {
+ if( $name === '' ) {
return new WikiErrorMsg( 'nouserspecified' );
}
}
} else {
$name = User::getCanonicalName( $name );
- if( !$name ) {
+ if( $name === false ) {
// invalid name
return new WikiErrorMsg( 'nosuchusershort', $username );
}