Replace uses of deprecated ParserOutput::getText()

Bug: T293512
Change-Id: Idf94eb65e0cf915792442458abba618c5feef86b
This commit is contained in:
Isabelle Hurbain-Palatin 2024-11-21 14:15:19 +01:00
parent facba232a0
commit 3ad70ec182

View file

@ -302,7 +302,8 @@ class LazyVariableComputer {
} else {
// Note: as of core change r727361, the PP limit comments (which we don't want to be here)
// are already excluded.
$result = $editInfo->getOutput()->getText();
$popts = $editInfo->popts;
$result = $editInfo->getOutput()->runOutputPipeline( $popts, [] )->getContentHolderText();
}
self::$profilingExtraTime += ( microtime( true ) - $startTime );
} else {
@ -314,7 +315,8 @@ class LazyVariableComputer {
$update = $parameters['update'];
// Shared with the edit, don't count it in profiling
$startTime = microtime( true );
$result = $update->getCanonicalParserOutput()->getText();
$popts = $update->getRenderedRevision()->getOptions();
$result = $update->getCanonicalParserOutput()->runOutputPipeline( $popts, [] )->getContentHolderText();
self::$profilingExtraTime += ( microtime( true ) - $startTime );
break;
case 'strip-html':