mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 11:05:56 +02:00
Merge pull request #24 from sdiel/patch-1
Ensure comparison is case insensitive.
This commit is contained in:
commit
e4691e8520
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user