Alex Monk has uploaded a new change for review.
https://gerrit.wikimedia.org/r/159237
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(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/37/159237/1
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: newchange
Gerrit-Change-Id: Ibde9eb45c798a7b3abef088f7abd78c926d13031
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Alex Monk <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits