From: Alex Monk Date: Tue, 9 Sep 2014 01:16:04 +0000 (+0100) Subject: Add content-not-allowed-here to API message map X-Git-Tag: 1.31.0-rc.0~14106^2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=78ebf8767e3047324bfbc54137d2a6daa0c074c8 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 --- diff --git a/includes/api/ApiBase.php b/includes/api/ApiBase.php index 6914b02974..eafa9ccd1e 100644 --- a/includes/api/ApiBase.php +++ b/includes/api/ApiBase.php @@ -1671,6 +1671,10 @@ abstract class ApiBase extends ContextSource { '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(