*/
$mode = $user->isWatched( $title ) ? 'unwatch' : 'watch';
$content_navigation['actions'][$mode] = array(
- 'class' => $onPage && ( $action == 'watch' || $action == 'unwatch' ) ? 'selected' : false,
+ 'class' => 'mw-watchlink ' . (
+ $onPage && ( $action == 'watch' || $action == 'unwatch' ) ? 'selected' : ''
+ ),
// uses 'watch' or 'unwatch' message
'text' => $this->msg( $mode )->text(),
'href' => $title->getLocalURL( array( 'action' => $mode ) )
$nav_urls['print'] = array(
'text' => $this->msg( 'printableversion' )->text(),
'href' => $this->getTitle()->getLocalURL(
- $request->appendQueryValue( 'printable', 'yes', true ) )
+ $request->appendQueryValue( 'printable', 'yes' ) )
);
}
$nav_urls['contributions'] = array(
'text' => $this->msg( 'contributions', $rootUser )->text(),
- 'href' => self::makeSpecialUrlSubpage( 'Contributions', $rootUser )
+ 'href' => self::makeSpecialUrlSubpage( 'Contributions', $rootUser ),
+ 'tooltip-params' => array( $rootUser ),
);
$nav_urls['log'] = array(
if ( $this->showEmailUser( $user ) ) {
$nav_urls['emailuser'] = array(
- 'href' => self::makeSpecialUrlSubpage( 'Emailuser', $rootUser )
+ 'href' => self::makeSpecialUrlSubpage( 'Emailuser', $rootUser ),
+ 'tooltip-params' => array( $rootUser ),
);
}