mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-27 17:40:11 +00:00
Pass a user to WikiPage::prepareContentForEdit()
Bug: T285447 Change-Id: Id9ca458d13c71a4114cf961541c47566afd80277
This commit is contained in:
parent
6aed0384bf
commit
aedd7f481b
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue