Add 'message' property to API output

Bug: T141492
Change-Id: I357a563397cbc13c1cfbe3cbefb876408021ecb6
This commit is contained in:
Matthias Mullie 2016-08-17 11:53:43 +02:00
parent fb4dcf5565
commit 21de00842b

View file

@ -243,7 +243,13 @@ class SpamBlacklistHooks {
$error = new ApiMessage(
wfMessage( 'spamprotectiontext' ),
'spamblacklist',
array( 'spamblacklist' => array( 'matches' => $matches ) )
array(
'spamblacklist' => array( 'matches' => $matches ),
'message' => array(
'key' => 'spamprotectionmatch',
'params' => $matches[0],
),
)
);
}