From 7a4c85d04b95009fb7eb23ebb4ff4d88080b7f1b Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 25 Oct 2008 14:06:13 +0000 Subject: [PATCH] Fix RSS for non 'newbies' targets --- includes/specials/SpecialContributions.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialContributions.php b/includes/specials/SpecialContributions.php index a54d35624a..575210bc9a 100644 --- a/includes/specials/SpecialContributions.php +++ b/includes/specials/SpecialContributions.php @@ -301,8 +301,12 @@ class SpecialContributions extends SpecialPage { $this->feedTitle(), wfMsg( 'tagline' ), $this->getTitle()->getFullUrl() ); - - $pager = new ContribsPager( $this->opts['target'], $this->opts['namespace'], + + // Already valid title + $nt = Title::makeTitleSafe( NS_USER, $this->opts['target'] ); + $target = $this->opts['target'] == 'newbies' ? 'newbies' : $nt->getText(); + + $pager = new ContribsPager( $target, $this->opts['namespace'], $this->opts['year'], $this->opts['month'] ); $pager->mLimit = min( $this->opts['limit'], $wgFeedLimit ); -- 2.20.1