Skip to content
This repository was archived by the owner on May 25, 2021. It is now read-only.

Commit b6e4d4e

Browse files
committed
Link to Special:Diff instead of page
1 parent 85909a7 commit b6e4d4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SpecialReport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ static public function onPost( $par, $out, $request ) {
118118
], __METHOD__ );
119119
$dbw->endAtomic(__METHOD__);
120120
$out->addWikiMsg( 'report-success' );
121-
$out->addWikiMsg( 'returnto', '[[' . Revision::newFromId( (int)$par )->getTitle()->getPrefixedText() . ']]' );
121+
$out->addWikiMsg( 'returnto', '[[' . SpecialPage::getTitleFor('Diff', $par)->getPrefixedText() . ']]' );
122122
return;
123123
}
124124
}

0 commit comments

Comments
 (0)