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

Bug: T247661
Depends-On: Ic3d70efc23744ef6e90abc445f3babebf45c4697
Change-Id: I565c5391b0d3f0b5fae2366e06ad5e1a2a18301c
This commit is contained in:
Bartosz Dziewoński 2021-05-21 18:02:44 +02:00
parent 1afe7c9b0b
commit 1f6466e93b

View file

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