Revision: 48502
Author:   werdna
Date:     2009-03-18 00:15:47 +0000 (Wed, 18 Mar 2009)

Log Message:
-----------
Fix double-escaping on diff page

Modified Paths:
--------------
    trunk/extensions/AbuseFilter/Views/AbuseFilterViewDiff.php

Modified: trunk/extensions/AbuseFilter/Views/AbuseFilterViewDiff.php
===================================================================
--- trunk/extensions/AbuseFilter/Views/AbuseFilterViewDiff.php  2009-03-17 
23:54:56 UTC (rev 48501)
+++ trunk/extensions/AbuseFilter/Views/AbuseFilterViewDiff.php  2009-03-18 
00:15:47 UTC (rev 48502)
@@ -284,11 +284,15 @@
                        $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' ) 
);
                



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to