From: Amir Sarabadani Date: Sat, 4 Feb 2017 01:38:42 +0000 (+0330) Subject: Add class in diff and history links in ChangesList X-Git-Tag: 1.31.0-rc.0~4000^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=934a53ea7ce5024889422355837357c892f6e306;p=lhc%2Fweb%2Fwiklou.git Add class in diff and history links in ChangesList It would make it easier to select in javascript and CSS Bug: T157178 Change-Id: I2d5ef8c180ae4ff6e7f5d0ab443dc7084f8c4c77 --- diff --git a/includes/changes/ChangesList.php b/includes/changes/ChangesList.php index 1e88e13636..970dc5a046 100644 --- a/includes/changes/ChangesList.php +++ b/includes/changes/ChangesList.php @@ -379,7 +379,7 @@ class ChangesList extends ContextSource { $diffLink = $this->linkRenderer->makeKnownLink( $rc->getTitle(), new HtmlArmor( $this->message['diff'] ), - [], + [ 'class' => 'mw-changeslist-diff' ], $query ); } @@ -391,7 +391,7 @@ class ChangesList extends ContextSource { $diffhist .= $this->linkRenderer->makeKnownLink( $rc->getTitle(), new HtmlArmor( $this->message['hist'] ), - [], + [ 'class' => 'mw-changeslist-history' ], [ 'curid' => $rc->mAttribs['rc_cur_id'], 'action' => 'history'