* Fix 'Non-static method ContributionScores::loadMessages() cannot be called statically'
* Using $wgExtensionMessagesFiles now * Added 4 messages * update indentation and such
This commit is contained in:
parent
489f6d9133
commit
837816d6f2
3 changed files with 270 additions and 284 deletions
|
@ -5,24 +5,20 @@
|
|||
|
||||
# Not a valid entry point, skip unless MEDIAWIKI is defined
|
||||
if (!defined('MEDIAWIKI')) {
|
||||
echo "Contribution Scores extension";
|
||||
exit(1);
|
||||
echo "Contribution Scores extension";
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
$wgExtensionCredits['specialpage'][] = array(
|
||||
'name'=>'Contribution Scores',
|
||||
'url'=>'http://www.mediawiki.org/wiki/Extension:Contribution_Scores',
|
||||
'author'=>'Tim Laqua',
|
||||
'description'=>'Polls Wiki Database for highest user contribution volume.',
|
||||
'version'=>'1.4'
|
||||
'name'=>'Contribution Scores',
|
||||
'url'=>'http://www.mediawiki.org/wiki/Extension:Contribution_Scores',
|
||||
'author'=>'Tim Laqua, Siebrand Mazeland',
|
||||
'description'=>'Polls wiki database for highest user contribution volume',
|
||||
'version'=>'1.5'
|
||||
);
|
||||
|
||||
$wgAutoloadClasses['ContributionScores'] = dirname(__FILE__) . '/ContributionScores_body.php';
|
||||
|
||||
$dir = dirname(__FILE__) . '/';
|
||||
$wgExtensionMessagesFiles['ContributionScores'] = $dir . 'ContributionScores.i18n.php';
|
||||
$wgAutoloadClasses['ContributionScores'] = $dir . 'ContributionScores_body.php';
|
||||
|
||||
$wgSpecialPages['ContributionScores'] = 'ContributionScores';
|
||||
|
||||
if ( version_compare( $wgVersion, '1.10.0', '<' ) ) {
|
||||
//Extension designed for 1.10.0+, but will work on some older versions
|
||||
//LoadAllMessages hook throws errors before 1.10.0
|
||||
} else {
|
||||
$wgHooks['LoadAllMessages'][] = 'ContributionScores::loadMessages';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue