mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
Merge "Use the edited page's title for magic words in API error messages"
This commit is contained in:
commit
edec0d10ec
|
@ -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'] ) ) {
|
||||
|
|
Loading…
Reference in a new issue