From 2f1878803a8dc111c450ba2f1c8501983aa92d1c Mon Sep 17 00:00:00 2001 From: til-schneider Date: Wed, 23 Dec 2015 19:24:50 +0100 Subject: [PATCH] Fixed: Directories were not shown any more in breadcrumbs --- src/server/logic/Main.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server/logic/Main.php b/src/server/logic/Main.php index b94b451..6f65501 100644 --- a/src/server/logic/Main.php +++ b/src/server/logic/Main.php @@ -147,13 +147,14 @@ class Main { $pathCount = count($requestPathArray); $breadcrumbArray = array(array('name' => $wikiName, 'path' => '', 'active' => ($pathCount == 0))); + $articleBaseDir = $this->context->getArticleBaseDir(); $currentPath = ''; for ($i = 0; $i < $pathCount; $i++) { $pathPart = $requestPathArray[$i]; $currentPath .= ($i == 0 ? '' : '/') . $pathPart; $isLast = ($i == $pathCount - 1); - if ($isLast || file_exists($this->articleBaseDir . $currentPath . '/index.md')) { + if ($isLast || file_exists($articleBaseDir . $currentPath . '/index.md')) { // This is the requested file or an directory having an index -> Add it $breadcrumbArray[] = array( 'name' => str_replace('_', ' ', $pathPart),