Index: trunk/extensions/ContributionReporting/ContributionHistory_body.php |
— | — | @@ -4,8 +4,8 @@ |
5 | 5 | parent::__construct( 'ContributionHistory' ); |
6 | 6 | } |
7 | 7 | |
8 | | - function execute( $language = null ) { |
9 | | - global $wgRequest, $wgOut, $wgTitle, $wgLang; |
| 8 | + function execute( $language ) { |
| 9 | + global $wgRequest, $wgOut, $wgLang; |
10 | 10 | |
11 | 11 | # Emergecny short cut until post donation comments are enabled |
12 | 12 | $wgOut->redirect( SpecialPage::getTitleFor( 'FundraiserStatistics' )->getFullURL() ); |
— | — | @@ -57,7 +57,7 @@ |
58 | 58 | ) |
59 | 59 | ); |
60 | 60 | |
61 | | - $title = Title::newFromText( $wgTitle->getPrefixedText() . ( $language == 'en' ? '' : '/' . $language ) ); |
| 61 | + $title = $this->getTitle( $language == 'en' ? null : $language ); |
62 | 62 | |
63 | 63 | $pagingLinks = array(); |
64 | 64 | if( $offset !== null ) { |