mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 06:03:49 +00:00
Fix weird bug where unchanged conditions were being parsed as wikitext in diff displays, and usage of deprecated method
This commit is contained in:
parent
5c08223f77
commit
d69a31acb3
|
@ -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' ) );
|
||||
|
||||
|
|
|
@ -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" ) );
|
||||
|
|
Loading…
Reference in a new issue