Use str_replace instead of preg_replace. Follow up of r75769
authorDerk-Jan Hartman <hartman@users.mediawiki.org>
Mon, 17 Jan 2011 23:16:39 +0000 (23:16 +0000)
committerDerk-Jan Hartman <hartman@users.mediawiki.org>
Mon, 17 Jan 2011 23:16:39 +0000 (23:16 +0000)
includes/diff/WikiDiff.php

index f9bc67e..83ec324 100644 (file)
@@ -1045,7 +1045,7 @@ class _HWLDF_WordAccumulator {
 
        function getLines() {
                $this->_flushLine( '~done' );
-               return preg_replace( '/\n/m', '', $this->_lines );
+               return str_replace( '\n', '', $this->_lines );
        }
 }