From: Niklas Laxström Date: Sat, 31 Jan 2009 21:25:48 +0000 (+0000) Subject: * bug 17103 Special:Newpages/Special:Recentchanges should be localized on the "mark... X-Git-Tag: 1.31.0-rc.0~43093 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/?a=commitdiff_plain;h=a100733f5fb8d1ca3e2dca8b433008968db9c67f;p=lhc%2Fweb%2Fwiklou.git * bug 17103 Special:Newpages/Special:Recentchanges should be localized on the "mark changes as patrolled" confirmation --- 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();