From 3ba3f15e8d35e771a5419412f0b41a7fb947a870 Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Fri, 10 Feb 2012 21:13:42 +0000 Subject: [PATCH] part 1 of fix for Bug 30332 - API spamblocklist error should provide *all* blocked URLs, not just one Patch from Jarry1250 --- includes/EditPage.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 9c7a7c9ee2..c5443c2808 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -3037,12 +3037,16 @@ HTML /** * Show "your edit contains spam" page with your diff and text * - * @param $match string|bool Text which triggered one or more filters + * @param $match array|string|bool Text (or array of texts) which triggered one or more filters */ public function spamPageWithContent( $match = false ) { global $wgOut; $this->textbox2 = $this->textbox1; + if( is_array( $match ) ){ + $match = $wgLang->listToText( $match ); + } + $wgOut->prepareErrorPage( wfMessage( 'spamprotectiontitle' ) ); $wgOut->addHTML( '
' ); -- 2.20.1