only transliterate if the function exists
Dieser Commit ist enthalten in:
Ursprung
695d2db311
Commit
0966f90b2c
|
@ -224,7 +224,10 @@ class DauxHelper
|
||||||
public static function slug($title)
|
public static function slug($title)
|
||||||
{
|
{
|
||||||
// Convert to ASCII
|
// Convert to ASCII
|
||||||
|
if (function_exists("transliterator_transliterate")) {
|
||||||
$title = transliterator_transliterate("Any-Latin; NFD; [:Nonspacing Mark:] Remove; NFC;", $title);
|
$title = transliterator_transliterate("Any-Latin; NFD; [:Nonspacing Mark:] Remove; NFC;", $title);
|
||||||
|
}
|
||||||
|
|
||||||
$title = iconv("utf-8", "ASCII//TRANSLIT//IGNORE", $title);
|
$title = iconv("utf-8", "ASCII//TRANSLIT//IGNORE", $title);
|
||||||
|
|
||||||
// Remove unsupported characters
|
// Remove unsupported characters
|
||||||
|
|
Laden…
In neuem Issue referenzieren