Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Poirier2021-04-01 12:53:16 +0000
committerEric Poirier2021-04-01 12:53:16 +0000
commit86c8b7de59108e0dff8f17a422c923c1231171b9 (patch)
tree7ccb4390750e762f3ddcd3730dba8451168fbca6
parent9821a28d6849aa3575e4eb6150404dd99cf851e0 (diff)
downloadeclipse.org-common-86c8b7de59108e0dff8f17a422c923c1231171b9.tar.gz
eclipse.org-common-86c8b7de59108e0dff8f17a422c923c1231171b9.tar.xz
eclipse.org-common-86c8b7de59108e0dff8f17a422c923c1231171b9.zip
Bug 572505 - Fix sidebar nav where items were not showing
Change-Id: If3f866e61fe0fc4bd284f8f101635fa085a6e7b3 Signed-off-by: Eric Poirier <eric.poirier@eclipse-foundation.org>
-rw-r--r--classes/themes/baseTheme.class.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/classes/themes/baseTheme.class.php b/classes/themes/baseTheme.class.php
index f6b480ee..31bfc0a9 100644
--- a/classes/themes/baseTheme.class.php
+++ b/classes/themes/baseTheme.class.php
@@ -2100,13 +2100,15 @@ EOHTML;
$variables['link_count'] = $this->Nav->getLinkCount();
$variables['html_block'] = $this->Nav->getHTMLBlock();
$variables['html_block_suffix'] = $this->Nav->getHTMLBlockSuffix();
- $parent_item = "";
+ $parent_item = 0;
for ($i = 0; $i < $variables['link_count']; $i++) {
$link = $this->Nav->getLinkAt($i);
if ($link->getTarget() === "__SEPARATOR") {
- $variables['#items'][$parent_item]['item'] = $link;
+ $variables['#items'][] = array(
+ 'item' => $link
+ );
continue;
}

Back to the top