ApiEditPage: Fix error message for edit conflicts
The 'editconflict' message is used by the normal edit form, and it expects a parameter (page name), which was never passed. 'edit-conflict' should have been used instead. This doesn't change the error code, which is mapped in ApiMessageTrait and it already has a case for 'edit-conflict'/'editconflict'. Change-Id: Ic95af27a67b95310b27ec344503d0a5cd88d79a2
This commit is contained in:
parent
3746d3dacb
commit
88a723bd87
1 changed files with 1 additions and 1 deletions
|
|
@ -473,7 +473,7 @@ class ApiEditPage extends ApiBase {
|
|||
$status->fatal( 'apierror-pagedeleted' );
|
||||
break;
|
||||
case EditPage::AS_CONFLICT_DETECTED:
|
||||
$status->fatal( 'editconflict' );
|
||||
$status->fatal( 'edit-conflict' );
|
||||
break;
|
||||
|
||||
// Currently shouldn't be needed, but here in case
|
||||
|
|
|
|||
Loading…
Reference in a new issue