Skip to content

Commit

Permalink
Merge "Ensure ParserOutput::getTimeProfile() is valid for all Content…
Browse files Browse the repository at this point in the history
…Handlers"
  • Loading branch information
jenkins-bot authored and Gerrit Code Review committed Oct 7, 2024
2 parents fc6afde + 3bfe5bd commit d1ae16e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions repo/includes/Content/EntityHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -810,6 +810,8 @@ protected function fillParserOutput(
*/
protected function getParserOutputForRedirect( EntityContent $content, bool $generateHtml ) {
$parserOutput = new ParserOutput();
$parserOutput->resetParseStartTime();

$target = $content->getRedirectTarget();

// Make sure to include the redirect link in pagelinks
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public function getParserOutput(
$entity = $entityRevision->getEntity();

$parserOutput = new ParserOutput();
$parserOutput->resetParseStartTime();

$updaterCollection = new EntityParserOutputDataUpdaterCollection( $parserOutput, $this->dataUpdaters );
$updaterCollection->updateParserOutput( $entity );
Expand Down

0 comments on commit d1ae16e

Please sign in to comment.