From bc2d5f086132c87d987ba59d09abc93f2facd6b0 Mon Sep 17 00:00:00 2001 From: "C. Scott Ananian" Date: Mon, 4 Nov 2019 15:14:56 -0500 Subject: [PATCH] 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 --- ContributionScores.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ContributionScores.php b/ContributionScores.php index 8bc5c20..7be318e 100644 --- a/ContributionScores.php +++ b/ContributionScores.php @@ -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 );