diff --git a/composer.json b/composer.json index 57433df..4050ea9 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "jakub-onderka/php-console-highlighter": "0.3.2", "mediawiki/mediawiki-codesniffer": "28.0.0", "mediawiki/minus-x": "0.3.2", - "mediawiki/mediawiki-phan-config": "0.8.0" + "mediawiki/mediawiki-phan-config": "0.9.0" }, "scripts": { "fix": [ diff --git a/includes/ApiQueryExtracts.php b/includes/ApiQueryExtracts.php index 1d06c4c..979bbfa 100644 --- a/includes/ApiQueryExtracts.php +++ b/includes/ApiQueryExtracts.php @@ -167,7 +167,8 @@ class ApiQueryExtracts extends ApiQueryBase { return $cache->makeKey( 'textextracts', self::CACHE_VERSION, $page->getId(), $page->getTouched(), $page->getTitle()->getPageLanguage()->getPreferredVariant(), - $this->params['plaintext'], $introOnly + $this->params['plaintext'] ? 'plaintext' : 'html', + $introOnly ? 'intro' : 'full' ); }