Only hooking BeforePageDisplay when special page is executed - no reason to include CSS otherwise.
This commit is contained in:
@@ -107,7 +107,9 @@ class ContributionScores extends IncludableSpecialPage
|
||||
}
|
||||
|
||||
function execute( $par ) {
|
||||
global $wgRequest, $wgVersion, $wgOut;
|
||||
global $wgRequest, $wgVersion, $wgOut, $wgHooks;
|
||||
|
||||
$wgHooks['BeforePageDisplay'][] = 'efContributionScores_addHeadScripts';
|
||||
|
||||
if( version_compare( $wgVersion, '1.11', '>=' ) )
|
||||
wfLoadExtensionMessages( 'ContributionScores' );
|
||||
|
||||
Reference in New Issue
Block a user