r36721 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r36720‎ | r36721 | r36722 >
Date:10:44, 27 June 2008
Author:werdna
Status:old
Tags:
Comment:
Fix regression in which textareas would spontaneously contain the rest of the HTML for Special:AbuseFilter/new
Modified paths:
  • /trunk/extensions/AbuseFilter/SpecialAbuseFilter.php (modified) (history)

Diff [purge]

Index: trunk/extensions/AbuseFilter/SpecialAbuseFilter.php
@@ -165,8 +165,8 @@
166166 $fields['abusefilter-edit-hitcount'] = '';
167167 }
168168
169 - $fields['abusefilter-edit-rules'] = Xml::textarea( 'wpFilterRules', ( isset( $row->af_pattern ) ? $row->af_pattern : '' ) );
170 - $fields['abusefilter-edit-notes'] = Xml::textarea( 'wpFilterNotes', ( isset( $row->af_comments ) ? $row->af_comments : '' ) );
 169+ $fields['abusefilter-edit-rules'] = Xml::textarea( 'wpFilterRules', ( isset( $row->af_pattern ) ? $row->af_pattern"\n" : "\n" ) );
 170+ $fields['abusefilter-edit-notes'] = Xml::textarea( 'wpFilterNotes', ( isset( $row->af_comments ) ? $row->af_comments."\n" : "\n" ) );
171171
172172
173173 // Build checkboxen

Status & tagging log