From a100733f5fb8d1ca3e2dca8b433008968db9c67f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Sat, 31 Jan 2009 21:25:48 +0000 Subject: [PATCH] * bug 17103 Special:Newpages/Special:Recentchanges should be localized on the "mark changes as patrolled" confirmation --- includes/Article.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index bf228adb0b..084221bb1d 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1798,8 +1798,8 @@ class Article { } #It would be nice to see where the user had actually come from, but for now just guess - $returnto = $rc->getAttribute( 'rc_type' ) == RC_NEW ? 'Newpages' : 'Recentchanges'; - $return = Title::makeTitle( NS_SPECIAL, $returnto ); + $returnto = $rc->getAttribute( 'rc_type' ) == RC_NEW ? 'newpages' : 'recentchanges'; + $return = SpecialPage::getTitleFor( $returnto ); $dbw = wfGetDB( DB_MASTER ); $errors = $rc->doMarkPatrolled(); -- 2.20.1