From 32ea3591beb0cc8b1a9c60f9e04075d16c75fec0 Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Mon, 17 Jan 2011 23:16:39 +0000 Subject: [PATCH] Use str_replace instead of preg_replace. Follow up of r75769 --- includes/diff/WikiDiff.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/diff/WikiDiff.php b/includes/diff/WikiDiff.php index f9bc67e2f9..83ec324cb7 100644 --- a/includes/diff/WikiDiff.php +++ b/includes/diff/WikiDiff.php @@ -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 ); } } -- 2.20.1