Make changes link for first filter revision link to the history item (bug 18027)

This commit is contained in:
Andrew Garrett 2009-03-22 23:27:27 +00:00
parent 8867569f8b
commit 2eaf10edde

View file

@ -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)