From ec44826b7a97bcdab203afc36b42bbdc2235a7de Mon Sep 17 00:00:00 2001 From: Max Semenik Date: Thu, 22 Sep 2016 18:58:55 -0700 Subject: [PATCH] Remove use of a removed function Change-Id: Iac8bec0a0a2625e40c5c70a715ffb4784224f164 --- includes/ApiQueryExtracts.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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 @@ class ApiQueryExtracts extends ApiQueryBase { $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 );