If the current revision of a page, where a user contributed to, is the
revision of this user ("current"), add the new css class
mw-contributions-current to the li-element to allow styling the whole
line differently.
Bug: T130824
Change-Id: I556b374585523a7c51278c2dc83bb03fd3b0ee33
# Mark current revisions
$topmarktext = '';
$user = $this->getUser();
- if ( $row->rev_id == $row->page_latest ) {
+ if ( $row->rev_id === $row->page_latest ) {
$topmarktext .= '<span class="mw-uctop">' . $this->messages['uctop'] . '</span>';
+ $classes[] = 'mw-contributions-current';
# Add rollback link
if ( !$row->page_is_new && $page->quickUserCan( 'rollback', $user )
&& $page->quickUserCan( 'edit', $user )