SamanthaNguyen has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/402612 )

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

Replace deprecated Parser::disableCache() function

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

Change-Id: I3f6912f9767f5f3c5ccebfaaeeb905042376f9b3
---
M includes/PollNY.hooks.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PollNY 
refs/changes/12/402612/1

diff --git a/includes/PollNY.hooks.php b/includes/PollNY.hooks.php
index bb7e5b7..9b81f63 100644
--- a/includes/PollNY.hooks.php
+++ b/includes/PollNY.hooks.php
@@ -143,7 +143,7 @@
         * @return bool true
         */
        public static function onParserLimitReportPrepare( $parser, $output ) {
-               $parser->disableCache();
+               $parser->getOutput()->updateCacheExpiry( 0 );
                return true;
        }
 
@@ -188,7 +188,7 @@
                        // Disable caching; this is important so that we don't 
cause subtle
                        // bugs that are a bitch to fix.
                        $wgOut->enableClientCache( false );
-                       $parser->disableCache();
+                       $parser->getOutput()->updateCacheExpiry( 0 );
 
                        $poll_title = Title::newFromText( $poll_name, NS_POLL );
                        $poll_title = PollNYHooks::followPollID( $poll_title );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3f6912f9767f5f3c5ccebfaaeeb905042376f9b3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PollNY
Gerrit-Branch: master
Gerrit-Owner: SamanthaNguyen <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to