From fe61cde95c90838475ccbd164ce09cf9deea1085 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 8 Aug 2008 10:11:35 +0000 Subject: Friendly titles no longer have more than one hyphen in a row git-svn-id: https://code.elgg.org/elgg/trunk@1787 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/elgglib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index 12f9910f3..e8cc9878d 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -775,6 +775,7 @@ $title = strtolower($title); $title = preg_replace("/[^\w ]/","",$title); $title = str_replace(" ","-",$title); + $title = str_replace("--","-",$title); return $title; } -- cgit v1.2.3