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:
parent
0fefd2e406
commit
bc2d5f0861
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||||
|
|
Loading…
Add table
Reference in a new issue