Page MenuHomePhabricator

30332-core.patch

Authored By
• bzimport
Nov 21 2014, 11:49 PM
Size
739 B
Referenced Files
None
Subscribers
None

30332-core.patch

Index: EditPage.php
===================================================================
--- EditPage.php (revision 107944)
+++ EditPage.php (working copy)
@@ -2909,11 +2909,15 @@
/**
* Show "your edit contains spam" page with your diff and text
*
- * @param $match Text which triggered one or more filters
+ * @param $match Text (or array of texts) which triggered one or more filters
*/
public function spamPageWithContent( $match = false ) {
- global $wgOut;
- $this->textbox2 = $this->textbox1;
+ global $wgOut, $wgLang;
+ $this->textbox2 = $this->textbox1;
+
+ if( is_array( $match ) ){
+ $match = $wgLang->listToText( $match );
+ }
$wgOut->prepareErrorPage( wfMessage( 'spamprotectiontitle' ) );

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
7574
Default Alt Text
30332-core.patch (739 B)

Event Timeline