From 5cc766583d0b01378440cb83dfd2ab9eb3b691e3 Mon Sep 17 00:00:00 2001 From: Sebastian Diel Date: Fri, 11 Jan 2013 11:02:49 +0100 Subject: [PATCH] Update code/controllers/DocumentationViewer.php BUGFIX: fixed mechanism to get nested page entities when using upper case chars as the first char of a markdown files name or a folders name --- code/controllers/DocumentationViewer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/controllers/DocumentationViewer.php b/code/controllers/DocumentationViewer.php index b961005..4636268 100755 --- a/code/controllers/DocumentationViewer.php +++ b/code/controllers/DocumentationViewer.php @@ -536,7 +536,7 @@ class DocumentationViewer extends Controller { // second comparison on $level=1 is against "changelogs/alpha", etc. $segments = array_slice($this->Remaining, 0, $level+1); - if(strtolower(implode('/', $segments)) == trim($page->getRelativeLink(), '/')) { + if(strtolower(implode('/', $segments)) == strtolower(trim($page->getRelativeLink(), '/'))) { // its either in this section or is the actual link $page->LinkingMode = (isset($this->Remaining[$level + 1])) ? 'section' : 'current'; @@ -1092,4 +1092,4 @@ class DocumentationViewer extends Controller { return $output; } -} \ No newline at end of file +}