} else {
$articlelink = ' '. $this->skin->makeKnownLinkObj( $rc->getTitle(), '', $params );
}
- if( $watched ) {
- $articlelink = "<strong class=\"mw-watched\">{$articlelink}</strong>";
- } else {
- $articlelink = '<span class="mw-rc-unwatched">' . $articlelink . '</span>';
- }
+ $articlelink = $this->maybeWatchedLink( $articlelink, $watched );
+
global $wgContLang;
$articlelink .= $wgContLang->getDirMark();
return true;
}
}
+
+ protected function maybeWatchedLink( $link, $watched=false ) {
+ if( $watched ) {
+ // FIXME: css style might be more appropriate
+ return '<strong class="mw-watched">' . $link . '</strong>';
+ } else {
+ return '<span class="mw-rc-unwatched">' . $link . '</span>';
+ }
+ }
}
return $r;
}
- protected function maybeWatchedLink( $link, $watched=false ) {
- if( $watched ) {
- // FIXME: css style might be more appropriate
- return '<strong class="mw-watched">' . $link . '</strong>';
- } else {
- return '<span class="mw-rc-unwatched">' . $link . '</span>';
- }
- }
-
/**
* Generate HTML for an arrow or placeholder graphic
* @param string $dir one of '', 'd', 'l', 'r'