mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 14:13:54 +00:00
Fix double-escaping on diff page
This commit is contained in:
parent
1aa5ea69e8
commit
ac575f599b
|
@ -284,11 +284,15 @@ class AbuseFilterViewDiff extends AbuseFilterView {
|
|||
$new = explode( "\n", $new );
|
||||
|
||||
if ( $old == $new ) {
|
||||
$old = implode( "\n", $old );
|
||||
$new = implode( "\n", $new );
|
||||
$old = implode( "<br/>\n", $old );
|
||||
$new = implode( "<br/>\n", $new );
|
||||
return $this->getSimpleRow( $msg, $old, $new );
|
||||
}
|
||||
|
||||
// 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' ) );
|
||||
|
||||
|
|
Loading…
Reference in a new issue