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:
C. Scott Ananian 2019-11-04 15:14:56 -05:00
parent 0fefd2e406
commit bc2d5f0861

View file

@ -55,7 +55,7 @@ function efContributionScores_Render( &$parser, $usertext, $metric = 'score' ) {
global $wgContribScoreDisableCache;
if ( $wgContribScoreDisableCache ) {
$parser->disableCache();
$parser->getOutput()->updateCacheExpiry( 0 );
}
$user = User::newFromName( $usertext );