*/
public function recentChangesLine( &$rc, $watched = false, $linenumber = null ) {
- $classes = [];
+ $classes = $this->getHTMLClasses( $rc, $watched );
// use mw-line-even/mw-line-odd class only if linenumber is given (feature from bug 14468)
if ( $linenumber ) {
if ( $linenumber & 1 ) {
}
}
- // Indicate watched status on the line to allow for more
- // comprehensive styling.
- $classes[] = $watched && $rc->mAttribs['rc_timestamp'] >= $watched
- ? 'mw-changeslist-line-watched' : 'mw-changeslist-line-not-watched';
-
$html = $this->formatChangeLine( $rc, $classes, $watched );
if ( $this->watchlist ) {
}
// Regular entries
} else {
- $this->insertDiffHist( $html, $rc, $unpatrolled );
+ $this->insertDiffHist( $html, $rc );
# M, N, b and ! (minor, new, bot and unpatrolled)
$html .= $this->recentChangesFlags(
[