mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TextExtracts
synced 2024-11-24 00:04:35 +00:00
Remove use of a removed function
Change-Id: Iac8bec0a0a2625e40c5c70a715ffb4784224f164
This commit is contained in:
parent
264f65215b
commit
ec44826b7a
|
@ -180,12 +180,7 @@ class ApiQueryExtracts extends ApiQueryBase {
|
||||||
$this->parserOptions = new ParserOptions( new User( '127.0.0.1' ) );
|
$this->parserOptions = new ParserOptions( new User( '127.0.0.1' ) );
|
||||||
}
|
}
|
||||||
// first try finding full page in parser cache
|
// first try finding full page in parser cache
|
||||||
if ( method_exists( $page, 'isParserCachedUsed' ) ) {
|
if ( $page->shouldCheckParserCache( $this->parserOptions, 0 ) ) {
|
||||||
$useCache = $page->isParserCacheUsed( $this->parserOptions, 0 );
|
|
||||||
} else {
|
|
||||||
$useCache = $page->shouldCheckParserCache( $this->parserOptions, 0 );
|
|
||||||
}
|
|
||||||
if ( $useCache ) {
|
|
||||||
$pout = ParserCache::singleton()->get( $page, $this->parserOptions );
|
$pout = ParserCache::singleton()->get( $page, $this->parserOptions );
|
||||||
if ( $pout ) {
|
if ( $pout ) {
|
||||||
$pout->setTOCEnabled( false );
|
$pout->setTOCEnabled( false );
|
||||||
|
|
Loading…
Reference in a new issue