Allow page.HasMenuCurrent() and node.HasMenuCurrent() to proceed with multi-level nested menus

Currently HasMenuCurrent only process the first 2 levels.
This commit is contained in:
Valere JEANTET
2015-06-25 12:26:48 +02:00
committed by Bjørn Erik Pedersen
parent 354192d2b8
commit 247574976c
2 changed files with 8 additions and 1 deletions

View File

@@ -626,6 +626,9 @@ func (p *Page) HasMenuCurrent(menu string, me *MenuEntry) bool {
if child.IsEqual(m) {
return true
}
if p.HasMenuCurrent(menu, child) {
return true
}
}
}
}