MaxSem has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/312448

Change subject: Remove use of a removed function
......................................................................

Remove use of a removed function

Change-Id: Iac8bec0a0a2625e40c5c70a715ffb4784224f164
---
M includes/ApiQueryExtracts.php
1 file changed, 1 insertion(+), 6 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/TextExtracts 
refs/changes/48/312448/1

diff --git a/includes/ApiQueryExtracts.php b/includes/ApiQueryExtracts.php
index 0fe7a86..944b649 100644
--- a/includes/ApiQueryExtracts.php
+++ b/includes/ApiQueryExtracts.php
@@ -180,12 +180,7 @@
                        $this->parserOptions = new ParserOptions( new User( 
'127.0.0.1' ) );
                }
                // first try finding full page in parser cache
-               if ( method_exists( $page, 'isParserCachedUsed' ) ) {
-                       $useCache = $page->isParserCacheUsed( 
$this->parserOptions, 0 );
-               } else {
-                       $useCache = $page->shouldCheckParserCache( 
$this->parserOptions, 0 );
-               }
-               if ( $useCache ) {
+               if ( $page->shouldCheckParserCache( $this->parserOptions, 0 ) ) 
{
                        $pout = ParserCache::singleton()->get( $page, 
$this->parserOptions );
                        if ( $pout ) {
                                $pout->setTOCEnabled( false );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iac8bec0a0a2625e40c5c70a715ffb4784224f164
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/TextExtracts
Gerrit-Branch: master
Gerrit-Owner: MaxSem <maxsem.w...@gmail.com>

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

Reply via email to