$message = 'sp-contributions-footer';
}
- if ( $message ) {
- if ( !$this->including() ) {
- if ( !$this->msg( $message, $target )->isDisabled() ) {
- $out->wrapWikiMsg(
- "<div class='mw-contributions-footer'>\n$1\n</div>",
- [ $message, $target ] );
- }
- }
+ if ( $message && !$this->including() && !$this->msg( $message, $target )->isDisabled() ) {
+ $out->wrapWikiMsg(
+ "<div class='mw-contributions-footer'>\n$1\n</div>",
+ [ $message, $target ] );
}
}
}
$links = '';
if ( $talk ) {
$tools = self::getUserLinks( $this, $userObj );
- $links = $this->getLanguage()->pipeList( $tools );
+ $links = Html::openElement( 'span', [ 'class' => 'mw-changeslist-links' ] );
+ foreach ( $tools as $tool ) {
+ $links .= Html::rawElement( 'span', [], $tool ) . ' ';
+ }
+ $links = trim( $links ) . Html::closeElement( 'span' );
// Show a note if the user is blocked and display the last block log entry.
// Do not expose the autoblocks, since that may lead to a leak of accounts' IPs,
}
return Html::rawElement( 'div', [ 'class' => 'mw-contributions-user-tools' ],
- $this->msg( 'contribsub2' )->rawParams( $user, $links )->params( $userObj->getName() )
+ $this->msg( 'contributions-subtitle' )->rawParams( $user )->params( $userObj->getName() )
+ . ' ' . $links
);
}