diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-08 10:11:35 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-08 10:11:35 +0000 |
commit | fe61cde95c90838475ccbd164ce09cf9deea1085 (patch) | |
tree | 3f29c77e8acf76fa1dd755a2c11a4be2889a5872 | |
parent | e1d3d2c61566a7a8422e5b2b416527cf284e7b08 (diff) | |
download | elgg-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.php | 1 |
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;
}
|