1
0
mirror of https://github.com/til-schneider/slim-wiki.git synced 2025-10-22 03:56:05 +02:00

Showing underscores in directory and file names as spaces in breadcrumbs

This commit is contained in:
til-schneider
2015-12-21 11:28:44 +01:00
parent eb95407e17
commit 5db605de20
4 changed files with 11 additions and 5 deletions

View File

@@ -56,7 +56,10 @@ class Main {
if ($isLast || file_exists($articleBaseDir . $currentPath . '/index.md')) {
// This is the requested file or an directory having an index -> Add it
$breadcrumbArray[] = array('name' => $pathPart, 'path' => urlencode($currentPath), 'active' => $isLast);
$breadcrumbArray[] = array(
'name' => str_replace('_', ' ', $pathPart),
'path' => urlencode($currentPath),
'active' => $isLast);
}
}