Replace use of Parser::disableCache(), deprecated in MW 1.28
The replacement `$parser->getOutput()->updateCacheExpiry(0)` has been in place since MW 1.16.3. See I6419754de6cbc01af07b6c0eafb8396bd720a58d in core. Change-Id: I7d31d79da71009648782b2a746ddfeb0992c96b5
This commit is contained in:
@@ -55,7 +55,7 @@ function efContributionScores_Render( &$parser, $usertext, $metric = 'score' ) {
|
|||||||
global $wgContribScoreDisableCache;
|
global $wgContribScoreDisableCache;
|
||||||
|
|
||||||
if ( $wgContribScoreDisableCache ) {
|
if ( $wgContribScoreDisableCache ) {
|
||||||
$parser->disableCache();
|
$parser->getOutput()->updateCacheExpiry( 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
$user = User::newFromName( $usertext );
|
$user = User::newFromName( $usertext );
|
||||||
|
|||||||
Reference in New Issue
Block a user