mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 11:05:56 +02:00
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
This commit is contained in:
parent
6df20c1f73
commit
5cc766583d
@ -536,7 +536,7 @@ class DocumentationViewer extends Controller {
|
|||||||
// second comparison on $level=1 is against "changelogs/alpha", etc.
|
// second comparison on $level=1 is against "changelogs/alpha", etc.
|
||||||
$segments = array_slice($this->Remaining, 0, $level+1);
|
$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
|
// its either in this section or is the actual link
|
||||||
$page->LinkingMode = (isset($this->Remaining[$level + 1])) ? 'section' : 'current';
|
$page->LinkingMode = (isset($this->Remaining[$level + 1])) ? 'section' : 'current';
|
||||||
|
Loading…
Reference in New Issue
Block a user