Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F8046
30332-core.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Authored By
•
bzimport
Nov 21 2014, 11:49 PM
2014-11-21 23:49:12 (UTC+0)
Size
739 B
Referenced Files
None
Subscribers
None
30332-core.patch
View Options
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
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
7574
Default Alt Text
30332-core.patch (739 B)
Attached To
Mode
T32332: API spamblacklist error should provide *all* blocked URLs, not just one
Attached
Detach File
Event Timeline
Log In to Comment