mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
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:
parent
1afe7c9b0b
commit
1f6466e93b
|
@ -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'] ) ) {
|
||||
|
|
Loading…
Reference in a new issue