Index: trunk/extensions/ContributionScores/ContributionScores_body.php |
— | — | @@ -12,8 +12,7 @@ |
13 | 13 | * @ingroup Extensions |
14 | 14 | * @author Tim Laqua <t.laqua@gmail.com> |
15 | 15 | */ |
16 | | -class ContributionScores extends IncludableSpecialPage |
17 | | -{ |
| 16 | +class ContributionScores extends IncludableSpecialPage { |
18 | 17 | public function __construct() { |
19 | 18 | parent::__construct( 'ContributionScores' ); |
20 | 19 | } |
— | — | @@ -101,7 +100,7 @@ |
102 | 101 | "<td>" . wfMsgHtml( 'contributionscores-changes' ) . "</td>\n" . |
103 | 102 | "<td>" . wfMsgHtml( 'contributionscores-username' ) . "</td>\n"; |
104 | 103 | |
105 | | - $skin =& $wgUser->getSkin(); |
| 104 | + $skin = $wgUser->getSkin(); |
106 | 105 | $altrow = ''; |
107 | 106 | while ( $row = $dbr->fetchObject( $res ) ) { |
108 | 107 | $output .= "</tr><tr class='{$altrow}'>\n<td class='content'>" . |
— | — | @@ -140,8 +139,6 @@ |
141 | 140 | function execute( $par ) { |
142 | 141 | global $wgRequest, $wgOut, $wgHooks; |
143 | 142 | |
144 | | - wfLoadExtensionMessages( 'ContributionScores' ); |
145 | | - |
146 | 143 | $this->setHeaders(); |
147 | 144 | |
148 | 145 | if( $this->including() ) { |
— | — | @@ -201,7 +198,7 @@ |
202 | 199 | array(0,50)); |
203 | 200 | } |
204 | 201 | |
205 | | - $wgOut->addWikiText( wfMsg( 'contributionscores-info' ) ); |
| 202 | + $wgOut->addWikiMsg( 'contributionscores-info' ); |
206 | 203 | |
207 | 204 | foreach ( $wgContribScoreReports as $scoreReport) { |
208 | 205 | if ( $scoreReport[0] > 0 ) { |