mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SpamBlacklist
synced 2024-11-27 16:40:04 +00:00
Add 'message' property to API output
Bug: T141492 Change-Id: I357a563397cbc13c1cfbe3cbefb876408021ecb6
This commit is contained in:
parent
fb4dcf5565
commit
21de00842b
|
@ -243,7 +243,13 @@ class SpamBlacklistHooks {
|
||||||
$error = new ApiMessage(
|
$error = new ApiMessage(
|
||||||
wfMessage( 'spamprotectiontext' ),
|
wfMessage( 'spamprotectiontext' ),
|
||||||
'spamblacklist',
|
'spamblacklist',
|
||||||
array( 'spamblacklist' => array( 'matches' => $matches ) )
|
array(
|
||||||
|
'spamblacklist' => array( 'matches' => $matches ),
|
||||||
|
'message' => array(
|
||||||
|
'key' => 'spamprotectionmatch',
|
||||||
|
'params' => $matches[0],
|
||||||
|
),
|
||||||
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue