jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/402616 )

Change subject: Replace deprecated Parser::disableCache() function
......................................................................


Replace deprecated Parser::disableCache() function

Deprecated in 1.28 in favor of CacheTime::updateCacheExpiry().

Change-Id: Ib5d50d1d454aca0a9fb75a135e8ec2a894ab6f48
---
M RandomSelection.class.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jack Phoenix: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/RandomSelection.class.php b/RandomSelection.class.php
index 7c92a2f..70ca809 100644
--- a/RandomSelection.class.php
+++ b/RandomSelection.class.php
@@ -46,7 +46,7 @@
        public static function render( $input, $argv, $parser ) {
                # Prevent caching if specified so by the user
                if ( isset( $argv['uncached'] ) ) {
-                       $parser->disableCache();
+                       $parser->getOutput()->updateCacheExpiry( 0 );
                }
 
                # Parse the options and calculate total weight

-- 
To view, visit https://gerrit.wikimedia.org/r/402616
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib5d50d1d454aca0a9fb75a135e8ec2a894ab6f48
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/RandomSelection
Gerrit-Branch: master
Gerrit-Owner: SamanthaNguyen <samanthanguyen1...@gmail.com>
Gerrit-Reviewer: Jack Phoenix <ash...@uncyclomedia.co>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to