* Avoid unstubbing parser too early

This commit is contained in:
Niklas Laxström 2008-05-25 21:09:41 +00:00
parent f7bfeda9e0
commit 94a8bf4a1e

View file

@ -36,7 +36,12 @@ if( version_compare( $wgVersion, '1.11', '>=' ) ) {
} }
$wgHooks['LanguageGetMagic'][] = 'efContributionScores_LanguageGetMagic'; $wgHooks['LanguageGetMagic'][] = 'efContributionScores_LanguageGetMagic';
$wgExtensionFunctions[] = 'efContributionScores_Setup';
if ( defined( 'MW_SUPPORTS_PARSERFIRSTCALLINIT' ) ) {
$wgHooks['ParserFirstCallInit'][] = 'efContributionScores_Setup';
} else {
$wgExtensionFunctions[] = 'efContributionScores_Setup';
}
///Message Cache population for versions that did not support $wgExtensionFunctions ///Message Cache population for versions that did not support $wgExtensionFunctions
function efContributionScores_AddMessages() { function efContributionScores_AddMessages() {