only transliterate if the function exists
Cette révision appartient à :
Parent
695d2db311
révision
0966f90b2c
|
@ -224,7 +224,10 @@ class DauxHelper
|
|||
public static function slug($title)
|
||||
{
|
||||
// Convert to ASCII
|
||||
if (function_exists("transliterator_transliterate")) {
|
||||
$title = transliterator_transliterate("Any-Latin; NFD; [:Nonspacing Mark:] Remove; NFC;", $title);
|
||||
}
|
||||
|
||||
$title = iconv("utf-8", "ASCII//TRANSLIT//IGNORE", $title);
|
||||
|
||||
// Remove unsupported characters
|
||||
|
|
Chargement…
Référencer dans un nouveau ticket