Only hooking BeforePageDisplay when special page is executed - no reason to include CSS otherwise.

This commit is contained in:
Tim Laqua 2007-12-19 02:15:35 +00:00
parent d3a22c5785
commit 2832bc3292
2 changed files with 3 additions and 2 deletions

View file

@ -24,7 +24,6 @@ $contribScoreReports = null;
$wgAutoloadClasses['ContributionScores'] = CONTRIBUTIONSCORES_PATH . '/ContributionScores_body.php';
$wgSpecialPages['ContributionScores'] = 'ContributionScores';
$wgHooks['BeforePageDisplay'][] = 'efContributionScores_addHeadScripts';
if( version_compare( $wgVersion, '1.11', '>=' ) ) {
$wgExtensionMessagesFiles['ContributionScores'] = CONTRIBUTIONSCORES_PATH . '/ContributionScores.i18n.php';