Merge "Add content-not-allowed-here to API message map"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 9 Sep 2014 05:10:06 +0000 (05:10 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 9 Sep 2014 05:10:06 +0000 (05:10 +0000)
includes/api/ApiBase.php

index 6914b02..eafa9cc 100644 (file)
@@ -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(