Commit 08d1ebb6 by Scott

Fix bug overriding selected menu items

parent 54148456
......@@ -246,20 +246,18 @@
}
foreach ($navigation as $navprefix => $navlink) {
$sel = false;
$selected =& $qa_content['navigation'][$navtype][$navprefix]['selected'];
if (isset($navlink['selectpaths'])) {
// match specified paths
foreach ($navlink['selectpaths'] as $path) {
if (strpos($requestlower.'$', $path) === 0)
$sel = true;
$selected = true;
}
}
elseif ($requestlower === $navprefix || $requestlower.'$' === $navprefix) {
// exact match for array key
$sel = true;
$selected = true;
}
$qa_content['navigation'][$navtype][$navprefix]['selected'] = $sel;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment