jenkins-bot has submitted this change and it was merged.

Change subject: Add content-not-allowed-here to API message map
......................................................................


Add content-not-allowed-here to API message map

So we don't get 'Unknown error: "content-not-allowed-here"'

Bug: 70593
Change-Id: Ibde9eb45c798a7b3abef088f7abd78c926d13031
---
M includes/api/ApiBase.php
1 file changed, 4 insertions(+), 0 deletions(-)

Approvals:
  Legoktm: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/api/ApiBase.php b/includes/api/ApiBase.php
index 6914b02..eafa9cc 100644
--- a/includes/api/ApiBase.php
+++ b/includes/api/ApiBase.php
@@ -1671,6 +1671,10 @@
                        'code' => 'undofailure',
                        'info' => 'Undo failed due to conflicting intermediate 
edits'
                ),
+               'content-not-allowed-here' => array(
+                       'code' => 'contentnotallowedhere',
+                       'info' => 'Content model "$1" is not allowed at title 
"$2"'
+               ),
 
                // Messages from WikiPage::doEit()
                'edit-hook-aborted' => array(

-- 
To view, visit https://gerrit.wikimedia.org/r/159237
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ibde9eb45c798a7b3abef088f7abd78c926d13031
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Alex Monk <[email protected]>
Gerrit-Reviewer: Anomie <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to