Skip to content

Commit eec729f

Browse files
V1.3.0
1 parent 8947b02 commit eec729f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

common/util.class.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,12 @@ public static function cutStr($str, $length, $add = '...') {
5454
}
5555
}
5656

57-
## Transforme une chaîne en URL
5857

58+
/**
59+
* Formate a string to an url
60+
* @param mixed $str
61+
* @return string Formatted string
62+
*/
5963
public static function strToUrl($str) {
6064
$str = str_replace('&', 'et', $str);
6165
if ($str !== mb_convert_encoding(mb_convert_encoding($str, 'UTF-32', 'UTF-8'), 'UTF-8', 'UTF-32'))

0 commit comments

Comments
 (0)