dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e54ab4
)
Add content-not-allowed-here to API message map
author
Alex Monk
<krenair@wikimedia.org>
Tue, 9 Sep 2014 01:16:04 +0000
(
02:16
+0100)
committer
Alex Monk
<krenair@wikimedia.org>
Tue, 9 Sep 2014 01:16:04 +0000
(
02:16
+0100)
So we don't get 'Unknown error: "content-not-allowed-here"'
Bug: 70593
Change-Id: Ibde9eb45c798a7b3abef088f7abd78c926d13031
includes/api/ApiBase.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiBase.php
b/includes/api/ApiBase.php
index
6914b02
..
eafa9cc
100644
(file)
--- 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(