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') {
|
function efContributionScores_Render(&$parser, $usertext, $metric='score') {
|
||||||
global $wgContribScoreDisableCache, $wgVersion;
|
global $wgContribScoreDisableCache;
|
||||||
|
|
||||||
if( version_compare( $wgVersion, '1.11', '>=' ) )
|
|
||||||
wfLoadExtensionMessages( 'ContributionScores' );
|
|
||||||
|
|
||||||
$output = "";
|
$output = "";
|
||||||
|
|
||||||
|
|
|
@ -138,10 +138,8 @@ class ContributionScores extends IncludableSpecialPage
|
||||||
}
|
}
|
||||||
|
|
||||||
function execute( $par ) {
|
function execute( $par ) {
|
||||||
global $wgRequest, $wgVersion, $wgOut, $wgHooks;
|
global $wgRequest, $wgOut, $wgHooks;
|
||||||
|
|
||||||
if( version_compare( $wgVersion, '1.11', '>=' ) )
|
|
||||||
wfLoadExtensionMessages( 'ContributionScores' );
|
|
||||||
|
|
||||||
$this->setHeaders();
|
$this->setHeaders();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue