Fix directories with unicode characters not being supported

This commit is contained in:
Alexander Overvoorde 2019-07-07 22:29:42 +02:00 committed by Stéphane Goetz
parent 41866cfd35
commit dbfb4cf70d
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ class Builder
}
if ($file->isDir()) {
$title = static::removeSortingInformations($file->getFilename());
$title = DauxHelper::slug(static::removeSortingInformations($file->getFilename()));
$new = new Directory($node, $title, $file);
$new->setName(static::getName($file->getPathName()));
$new->setTitle(str_replace('_', ' ', static::removeSortingInformations($new->getName())));