Fix double-escaping on diff page

This commit is contained in:
Andrew Garrett 2009-03-18 00:15:47 +00:00
parent 1aa5ea69e8
commit ac575f599b

View file

@ -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' ) );