aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-08 10:11:35 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-08 10:11:35 +0000
commitfe61cde95c90838475ccbd164ce09cf9deea1085 (patch)
tree3f29c77e8acf76fa1dd755a2c11a4be2889a5872
parente1d3d2c61566a7a8422e5b2b416527cf284e7b08 (diff)
downloadelgg-fe61cde95c90838475ccbd164ce09cf9deea1085.tar.gz
elgg-fe61cde95c90838475ccbd164ce09cf9deea1085.tar.bz2
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
-rw-r--r--engine/lib/elgglib.php1
1 files changed, 1 insertions, 0 deletions
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;
}