Add a link to filter id in Special:AbuseFilter/history

Currently, there is no link to the current version of the filter
from the history (unless one clicks on the last timestamp link of
that filter) and that is sub-optimal.

Change-Id: Ibc7fcfab386e687d052878602fa810c5a3590d6c
This commit is contained in:
glaisher 2014-11-17 22:44:20 +05:00
parent 97b34fbfbe
commit 6129d2f500

View file

@ -122,7 +122,8 @@ class AbuseFilterHistoryPager extends TablePager {
switch( $name ) {
case 'afh_filter':
$formatted = $lang->formatNum ( $row->afh_filter );
$formatted = Linker::link(
SpecialPage::getTitleFor( 'AbuseFilter', intval( $row->afh_filter ) ), $lang->formatNum ( $row->afh_filter ) );
break;
case 'afh_timestamp':
$title = SpecialPage::getTitleFor( 'AbuseFilter',