From: Derk-Jan Hartman Date: Mon, 17 Jan 2011 23:16:39 +0000 (+0000) Subject: Use str_replace instead of preg_replace. Follow up of r75769 X-Git-Tag: 1.31.0-rc.0~32491 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=32ea3591beb0cc8b1a9c60f9e04075d16c75fec0;p=lhc%2Fweb%2Fwiklou.git Use str_replace instead of preg_replace. Follow up of r75769 --- 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 ); } }