Index: trunk/phase3/includes/Article.php |
— | — | @@ -1798,8 +1798,8 @@ |
1799 | 1799 | } |
1800 | 1800 | |
1801 | 1801 | #It would be nice to see where the user had actually come from, but for now just guess |
1802 | | - $returnto = $rc->getAttribute( 'rc_type' ) == RC_NEW ? 'Newpages' : 'Recentchanges'; |
1803 | | - $return = Title::makeTitle( NS_SPECIAL, $returnto ); |
| 1802 | + $returnto = $rc->getAttribute( 'rc_type' ) == RC_NEW ? 'newpages' : 'recentchanges'; |
| 1803 | + $return = SpecialPage::getTitleFor( $returnto ); |
1804 | 1804 | |
1805 | 1805 | $dbw = wfGetDB( DB_MASTER ); |
1806 | 1806 | $errors = $rc->doMarkPatrolled(); |