Merge "Use the edited page's title for magic words in API error messages"

This commit is contained in:
jenkins-bot 2021-05-26 13:00:14 +00:00 committed by Gerrit Code Review
commit edec0d10ec

View file

@ -364,6 +364,7 @@ class ApiVisualEditorEdit extends ApiBase {
$this->dieWithError( 'apierror-pagecannotexist' );
}
'@phan-var Title $title';
$this->getErrorFormatter()->setContextTitle( $title );
$parserParams = [];
if ( isset( $params['oldid'] ) ) {