Revert r66934 (Removing wfLoadExtensionMessages() from everything). I disagree on principle...we branch extensions for this very reason. But people want trunk extensions compatible for several versions back, meh.
This commit is contained in:
parent
0905e4bbe2
commit
8b73cd1511
2 changed files with 8 additions and 3 deletions
|
@ -66,7 +66,10 @@ function efContributionScores_LanguageGetMagic( &$magicWords, $langCode ) {
|
|||
}
|
||||
|
||||
function efContributionScores_Render(&$parser, $usertext, $metric='score') {
|
||||
global $wgContribScoreDisableCache;
|
||||
global $wgContribScoreDisableCache, $wgVersion;
|
||||
|
||||
if( version_compare( $wgVersion, '1.11', '>=' ) )
|
||||
wfLoadExtensionMessages( 'ContributionScores' );
|
||||
|
||||
$output = "";
|
||||
|
||||
|
|
|
@ -138,8 +138,10 @@ class ContributionScores extends IncludableSpecialPage
|
|||
}
|
||||
|
||||
function execute( $par ) {
|
||||
global $wgRequest, $wgOut, $wgHooks;
|
||||
global $wgRequest, $wgVersion, $wgOut, $wgHooks;
|
||||
|
||||
if( version_compare( $wgVersion, '1.11', '>=' ) )
|
||||
wfLoadExtensionMessages( 'ContributionScores' );
|
||||
|
||||
$this->setHeaders();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue