ContributionScores extension maintenance.
* Reduce usage of globals. * Use Message class where possible. * Update .gitignore. * Broke some long lines. * Updated documentation for a method. Change-Id: Ic4c49dbcdabce2667ab140321d8618f62fe72fe8
This commit is contained in:
parent
4bceabbff7
commit
3d4fd708bb
3 changed files with 30 additions and 28 deletions
|
@ -15,7 +15,7 @@ $wgExtensionCredits['specialpage'][] = array(
|
|||
'url' => 'https://www.mediawiki.org/wiki/Extension:Contribution_Scores',
|
||||
'author' => 'Tim Laqua',
|
||||
'descriptionmsg' => 'contributionscores-desc',
|
||||
'version' => '1.15'
|
||||
'version' => '1.16'
|
||||
);
|
||||
|
||||
$dir = dirname( __FILE__ ) . '/';
|
||||
|
@ -77,10 +77,10 @@ function efContributionScores_Render( &$parser, $usertext, $metric = 'score' ) {
|
|||
$row = $dbr->fetchObject( $res );
|
||||
$output = $wgLang->formatNum( $row->page_count );
|
||||
} else {
|
||||
$output = wfMsg( 'contributionscores-invalidmetric' );
|
||||
$output = wfMessage( 'contributionscores-invalidmetric' )->text();
|
||||
}
|
||||
} else {
|
||||
$output = wfMsg( 'contributionscores-invalidusername' );
|
||||
$output = wfMessage( 'contributionscores-invalidusername' )->text();
|
||||
}
|
||||
|
||||
return $parser->insertStripItem( $output, $parser->mStripState );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue