From 21de00842bae25d3bc2cbe97d061d9751531f3b7 Mon Sep 17 00:00:00 2001 From: Matthias Mullie Date: Wed, 17 Aug 2016 11:53:43 +0200 Subject: [PATCH] Add 'message' property to API output Bug: T141492 Change-Id: I357a563397cbc13c1cfbe3cbefb876408021ecb6 --- SpamBlacklistHooks.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/SpamBlacklistHooks.php b/SpamBlacklistHooks.php index 6ff65c23..52b97efd 100644 --- a/SpamBlacklistHooks.php +++ b/SpamBlacklistHooks.php @@ -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], + ), + ) ); }