* (bug 21870) No longer include Google logo from an external server on wiki error.
* (bug 22181) Do not truncate if the ellipsis actually make the string longer
* (bug 16039) Text disappearing after a bad image
-* (bug 18784) Internal links like [[File:Foo|caption]] should read 'caption', not 'File:Foo' when Foo is not an image
+* (bug 18784) Internal links like [[File:Foo|caption]] should read 'caption',
+ not 'File:Foo' when Foo is not an image
+* (bug 21518) Special:UserRights no longer displays the user name box for users
+ that can only change their rights
== API changes in 1.16 ==
return;
}
+ $available = $this->changeableGroups();
+
if ( !$this->mTarget ) {
/*
* If the user specified no target, and they can only
* edit their own groups, automatically set them as the
* target.
*/
- $available = $this->changeableGroups();
- if ( empty( $available['add'] ) && empty( $available['remove'] ) )
+ if ( !count( $available['add'] ) && !count( $available['remove'] ) )
$this->mTarget = $wgUser->getName();
}
$this->setHeaders();
// show the general form
- $this->switchForm();
+ if ( count( $available['add'] ) || count( $available['remove'] ) )
+ $this->switchForm();
if( $wgRequest->wasPosted() ) {
// save settings