Pass a user to WikiPage::prepareContentForEdit()

Bug: T285447
Change-Id: Id9ca458d13c71a4114cf961541c47566afd80277
This commit is contained in:
DannyS712 2021-06-24 03:29:58 +00:00
parent 6aed0384bf
commit aedd7f481b

View file

@ -613,7 +613,7 @@ class SimpleCaptcha {
// Get links from the database
$oldLinks = $this->getLinksFromTracker( $title );
// Share a parse operation with Article::doEdit()
$editInfo = $page->prepareContentForEdit( $content );
$editInfo = $page->prepareContentForEdit( $content, null, $user );
if ( $editInfo->output ) {
$newLinks = array_keys( $editInfo->output->getExternalLinks() );
} else {