Large commit. Removed 800+ references to no-op wfLoadExtensionMessages()
This commit is contained in:
parent
f9a37ab622
commit
0905e4bbe2
2 changed files with 3 additions and 8 deletions
|
@ -66,10 +66,7 @@ function efContributionScores_LanguageGetMagic( &$magicWords, $langCode ) {
|
|||
}
|
||||
|
||||
function efContributionScores_Render(&$parser, $usertext, $metric='score') {
|
||||
global $wgContribScoreDisableCache, $wgVersion;
|
||||
|
||||
if( version_compare( $wgVersion, '1.11', '>=' ) )
|
||||
wfLoadExtensionMessages( 'ContributionScores' );
|
||||
global $wgContribScoreDisableCache;
|
||||
|
||||
$output = "";
|
||||
|
||||
|
|
|
@ -138,10 +138,8 @@ class ContributionScores extends IncludableSpecialPage
|
|||
}
|
||||
|
||||
function execute( $par ) {
|
||||
global $wgRequest, $wgVersion, $wgOut, $wgHooks;
|
||||
|
||||
if( version_compare( $wgVersion, '1.11', '>=' ) )
|
||||
wfLoadExtensionMessages( 'ContributionScores' );
|
||||
global $wgRequest, $wgOut, $wgHooks;
|
||||
|
||||
|
||||
$this->setHeaders();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue