From 94a8bf4a1eb81dd26819e796a923d83c94017fd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Laxstr=C3=B6m?= Date: Sun, 25 May 2008 21:09:41 +0000 Subject: [PATCH] * Avoid unstubbing parser too early --- ContributionScores.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ContributionScores.php b/ContributionScores.php index fbcaeb8..310699d 100644 --- a/ContributionScores.php +++ b/ContributionScores.php @@ -36,7 +36,12 @@ if( version_compare( $wgVersion, '1.11', '>=' ) ) { } $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 function efContributionScores_AddMessages() {