Merge "Remove use of a removed function"

This commit is contained in:
jenkins-bot 2016-09-26 22:28:18 +00:00 committed by Gerrit Code Review
commit 94b5782ec5

View file

@ -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 );