$fetchedStatus = $this->fetchUser( $this->mTarget );
if ( $fetchedStatus->isOk() ) {
$this->mFetchedUser = $fetchedStatus->value;
+ if ( $this->mFetchedUser instanceof User ) {
+ // Set the 'relevant user' in the skin, so it displays links like Contributions,
+ // User logs, UserRights, etc.
+ $this->getSkin()->setRelevantUser( $this->mFetchedUser );
+ }
}
if ( !$this->userCanChangeRights( $user, true ) ) {
30,
str_replace( '_', ' ', $this->mTarget ),
array(
- 'autofocus' => '',
'class' => 'mw-autocomplete-user', // used by mediawiki.userSuggest
+ ) + (
+ // Set autofocus on blank input and error input
+ $this->mFetchedUser === null ? array( 'autofocus' => '' ) : array()
)
) . ' ' .
Xml::submitButton( $this->msg( 'editusergroup' )->text() ) .