diff --git a/lib/weblib.php b/lib/weblib.php index fe90134fd51..2a02e8b3ff7 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -2327,12 +2327,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); }