r42549 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r42548‎ | r42549 | r42550 >
Date:14:06, 25 October 2008
Author:aaron
Status:old
Tags:
Comment:
Fix RSS for non 'newbies' targets
Modified paths:
  • /trunk/phase3/includes/specials/SpecialContributions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialContributions.php
@@ -301,8 +301,12 @@
302302 $this->feedTitle(),
303303 wfMsg( 'tagline' ),
304304 $this->getTitle()->getFullUrl() );
305 -
306 - $pager = new ContribsPager( $this->opts['target'], $this->opts['namespace'],
 305+
 306+ // Already valid title
 307+ $nt = Title::makeTitleSafe( NS_USER, $this->opts['target'] );
 308+ $target = $this->opts['target'] == 'newbies' ? 'newbies' : $nt->getText();
 309+
 310+ $pager = new ContribsPager( $target, $this->opts['namespace'],
307311 $this->opts['year'], $this->opts['month'] );
308312
309313 $pager->mLimit = min( $this->opts['limit'], $wgFeedLimit );

Status & tagging log