* bug 17103 Special:Newpages/Special:Recentchanges should be localized on the "mark...
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Sat, 31 Jan 2009 21:25:48 +0000 (21:25 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Sat, 31 Jan 2009 21:25:48 +0000 (21:25 +0000)
includes/Article.php

index bf228ad..084221b 100644 (file)
@@ -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();