diff --git a/lib/weblib.php b/lib/weblib.php index 1f09ce182b4..becb157b50d 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -1745,12 +1745,12 @@ 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); }