From ec321f23e458918a6ed52a020181f0c55667360f Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sun, 12 Dec 2004 05:07:09 +0000 Subject: [PATCH] Return somewhere sensible after marking as patrolled, without an annoying meta refresh --- includes/Article.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/Article.php b/includes/Article.php index 42a368f4d8..d6f71c523d 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1200,7 +1200,9 @@ class Article { RecentChange::markPatrolled( $rcid ); $wgOut->setPagetitle( wfMsg( 'markedaspatrolled' ) ); $wgOut->addWikiText( wfMsg( 'markedaspatrolledtext' ) ); - $wgOut->returnToMain( true, $this->mTitle->getPrefixedText() ); + + $rcTitle = Title::makeTitle( NS_SPECIAL, 'Recentchanges' ); + $wgOut->returnToMain( false, $rcTitle->getPrefixedText() ); } else { -- 2.20.1