diff --git a/lib/weblib.php b/lib/weblib.php index becb157b50d..e51341e8c50 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -1743,14 +1743,14 @@ function convert_urls_into_links(&$text) { } if ($unicoderegexp) { //We can use unicode modifiers - $text = preg_replace('#(?\\1', $text); - $text = preg_replace('#(?\\1', $text); } else { //We cannot use unicode modifiers - $text = preg_replace('#(?\\1', $text); - $text = preg_replace('#(?\\1', $text); }