Fix weird bug where unchanged conditions were being parsed as wikitext in diff displays, and usage of deprecated method

This commit is contained in:
Andrew Garrett 2009-07-17 14:03:11 +00:00
parent 5c08223f77
commit d69a31acb3
2 changed files with 2 additions and 6 deletions

View file

@ -316,13 +316,9 @@ class AbuseFilterViewDiff extends AbuseFilterView {
if ( $old == $new ) {
$old = implode( "<br/>\n", $old );
$new = implode( "<br/>\n", $new );
return $this->getSimpleRow( $msg, $old, $new );
return $this->getSimpleRow( $msg, $old, $new, 'text' );
}
// Hacky fix for double-escaping.
$old = array_map( 'html_entity_decode', $old );
$new = array_map( 'html_entity_decode', $new );
$row = '';
$row .= Xml::tags( 'th', null, wfMsgExt( $msg, 'parseinline' ) );

View file

@ -56,7 +56,7 @@ class AbuseFilterViewHistory extends AbuseFilterView {
}
// Add filtering of changes et al.
$fields['abusefilter-history-select-user'] = wfInput( 'user', 45, $user );
$fields['abusefilter-history-select-user'] = Xml::input( 'user', 45, $user );
$filterForm = Xml::buildForm( $fields, 'abusefilter-history-select-submit' );
$filterForm .= "\n" . Xml::hidden( 'title', $this->getTitle( "history/$filter" ) );