From 2aacf652eec075c4da502a910449a61d86674564 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Laxstr=C3=B6m?= Date: Sat, 11 Sep 2010 14:31:16 +0000 Subject: [PATCH] Fix strict warning and small cleanups --- ContributionScores_body.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/ContributionScores_body.php b/ContributionScores_body.php index c5aba3a..aac9ebe 100644 --- a/ContributionScores_body.php +++ b/ContributionScores_body.php @@ -12,8 +12,7 @@ * @ingroup Extensions * @author Tim Laqua */ -class ContributionScores extends IncludableSpecialPage -{ +class ContributionScores extends IncludableSpecialPage { public function __construct() { parent::__construct( 'ContributionScores' ); } @@ -101,7 +100,7 @@ class ContributionScores extends IncludableSpecialPage "" . wfMsgHtml( 'contributionscores-changes' ) . "\n" . "" . wfMsgHtml( 'contributionscores-username' ) . "\n"; - $skin =& $wgUser->getSkin(); + $skin = $wgUser->getSkin(); $altrow = ''; while ( $row = $dbr->fetchObject( $res ) ) { $output .= "\n" . @@ -140,8 +139,6 @@ class ContributionScores extends IncludableSpecialPage function execute( $par ) { global $wgRequest, $wgOut, $wgHooks; - wfLoadExtensionMessages( 'ContributionScores' ); - $this->setHeaders(); if( $this->including() ) { @@ -201,7 +198,7 @@ class ContributionScores extends IncludableSpecialPage array(0,50)); } - $wgOut->addWikiText( wfMsg( 'contributionscores-info' ) ); + $wgOut->addWikiMsg( 'contributionscores-info' ); foreach ( $wgContribScoreReports as $scoreReport) { if ( $scoreReport[0] > 0 ) {