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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user