Merge "Use ParserOutputAccess flags instead of ParsoidOutputAccess flags"

This commit is contained in:
jenkins-bot 2023-10-20 17:44:31 +00:00 committed by Gerrit Code Review
commit d501467802

View file

@ -19,7 +19,7 @@ use MediaWiki\Extension\DiscussionTools\ContentThreadItemSet;
use MediaWiki\Extension\Gadgets\GadgetRepo; use MediaWiki\Extension\Gadgets\GadgetRepo;
use MediaWiki\Linker\LinkTarget; use MediaWiki\Linker\LinkTarget;
use MediaWiki\MediaWikiServices; use MediaWiki\MediaWikiServices;
use MediaWiki\Parser\Parsoid\ParsoidOutputAccess; use MediaWiki\Page\ParserOutputAccess;
use MediaWiki\Revision\RevisionRecord; use MediaWiki\Revision\RevisionRecord;
use MediaWiki\Title\Title; use MediaWiki\Title\Title;
use MediaWiki\User\UserIdentity; use MediaWiki\User\UserIdentity;
@ -153,7 +153,7 @@ class HookUtils {
$parserOptions, $parserOptions,
$revRecord, $revRecord,
// Don't flood the parser cache // Don't flood the parser cache
$updateParserCacheFor ? 0 : ParsoidOutputAccess::OPT_NO_UPDATE_CACHE $updateParserCacheFor ? 0 : ParserOutputAccess::OPT_NO_UPDATE_CACHE
); );
if ( !$status->isOK() ) { if ( !$status->isOK() ) {