diff --git a/src/auth.php b/src/auth.php index ddb3113..5fe42e8 100644 --- a/src/auth.php +++ b/src/auth.php @@ -99,21 +99,6 @@ function profileBySlug(string $slug): ?array } } -function slugify(string $text): string -{ - $map = [ - 'à' => 'a', 'â' => 'a', 'ä' => 'a', - 'é' => 'e', 'è' => 'e', 'ê' => 'e', 'ë' => 'e', - 'î' => 'i', 'ï' => 'i', - 'ô' => 'o', 'ö' => 'o', - 'ù' => 'u', 'û' => 'u', 'ü' => 'u', - 'ç' => 'c', 'æ' => 'ae', 'œ' => 'oe', - ]; - $s = mb_strtolower($text, 'UTF-8'); - $s = strtr($s, $map); - $s = preg_replace('/[^a-z0-9]+/', '-', $s); - return trim((string)$s, '-'); -} function dbPdo(): ?PDO {