Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -3037,12 +3037,16 @@ |
3038 | 3038 | /** |
3039 | 3039 | * Show "your edit contains spam" page with your diff and text |
3040 | 3040 | * |
3041 | | - * @param $match string|bool Text which triggered one or more filters |
| 3041 | + * @param $match array|string|bool Text (or array of texts) which triggered one or more filters |
3042 | 3042 | */ |
3043 | 3043 | public function spamPageWithContent( $match = false ) { |
3044 | 3044 | global $wgOut; |
3045 | 3045 | $this->textbox2 = $this->textbox1; |
3046 | 3046 | |
| 3047 | + if( is_array( $match ) ){ |
| 3048 | + $match = $wgLang->listToText( $match ); |
| 3049 | + } |
| 3050 | + |
3047 | 3051 | $wgOut->prepareErrorPage( wfMessage( 'spamprotectiontitle' ) ); |
3048 | 3052 | |
3049 | 3053 | $wgOut->addHTML( '<div id="spamprotected">' ); |