r82080 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r82079‎ | r82080 | r82081 >
Date:21:09, 13 February 2011
Author:ialex
Status:deferred
Tags:
Comment:
Use $this->getTitle() instead of $wgTitle
Modified paths:
  • /trunk/extensions/ContributionReporting/ContributionHistory_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ContributionReporting/ContributionHistory_body.php
@@ -4,8 +4,8 @@
55 parent::__construct( 'ContributionHistory' );
66 }
77
8 - function execute( $language = null ) {
9 - global $wgRequest, $wgOut, $wgTitle, $wgLang;
 8+ function execute( $language ) {
 9+ global $wgRequest, $wgOut, $wgLang;
1010
1111 # Emergecny short cut until post donation comments are enabled
1212 $wgOut->redirect( SpecialPage::getTitleFor( 'FundraiserStatistics' )->getFullURL() );
@@ -57,7 +57,7 @@
5858 )
5959 );
6060
61 - $title = Title::newFromText( $wgTitle->getPrefixedText() . ( $language == 'en' ? '' : '/' . $language ) );
 61+ $title = $this->getTitle( $language == 'en' ? null : $language );
6262
6363 $pagingLinks = array();
6464 if( $offset !== null ) {

Follow-up revisions

RevisionCommit summaryAuthorDate
r102697MFT r45856, r71558, r71962, r73304, r73309, r75671, r75680, r75726, r76542, r...awjrichards22:02, 10 November 2011

Status & tagging log