mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-27 23:40:19 +00:00
Make changes link for first filter revision link to the history item (bug 18027)
This commit is contained in:
parent
8867569f8b
commit
2eaf10edde
|
@ -92,6 +92,14 @@ class AbuseFilterViewDiff extends AbuseFilterView {
|
|||
__METHOD__,
|
||||
array( 'ORDER BY' => 'afh_timestamp desc' )
|
||||
);
|
||||
if ($other && !$row) {
|
||||
$t = $this->getTitle(
|
||||
"history/".$this->mFilter."/item/".$other['meta']['history_id'] );
|
||||
global $wgOut;
|
||||
$wgOut->redirect( $t->getFullURL() );
|
||||
return;
|
||||
}
|
||||
|
||||
} elseif ($spec == 'next' && !in_array( $otherSpec, $dependentSpecs ) ) {
|
||||
// cached
|
||||
$other = $this->loadSpec( $otherSpec, $spec );
|
||||
|
@ -106,6 +114,14 @@ class AbuseFilterViewDiff extends AbuseFilterView {
|
|||
__METHOD__,
|
||||
array( 'ORDER BY' => 'afh_timestamp desc' )
|
||||
);
|
||||
|
||||
if ($other && !$row) {
|
||||
$t = $this->getTitle(
|
||||
"history/".$this->mFilter."/item/".$other['meta']['history_id'] );
|
||||
global $wgOut;
|
||||
$wgOut->redirect( $t->getFullURL() );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (!$row)
|
||||
|
|
Loading…
Reference in a new issue