* Avoid unstubbing parser too early
This commit is contained in:
parent
f7bfeda9e0
commit
94a8bf4a1e
1 changed files with 6 additions and 1 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue