549,6 → 549,9 |
$chemin = self::startsWith($chemin,'/') ? $chemin : '/'.$chemin; |
$chemin = self::endsWith($chemin,'/') ? $chemin : $chemin.'/'; |
$chemin = str_replace('//', '/', $chemin); |
// mise en minuscule du chemin afin d'éviter des cas où l'on aurait |
// des même mots clés avec minuscule et majuscule |
$chemin = strtolower($chemin); |
return $chemin; |
} |
|
561,7 → 564,7 |
static public function simplifier($text) { |
$caracteresASupprimer = array('\\','/', ','); |
$text = str_replace($caracteresASupprimer, '', $text); |
$text = trim($text); |
$text = strtolower(trim($text)); |
return $text; |
} |
|