changed getSubmenu to getSubmenuLocation

Because it doen't return the submenu itself, it returns the preferred
location
This commit is contained in:
martimiz 2012-11-12 16:04:14 +01:00 committed by Will Rossiter
parent 0df804f86c
commit 3dcf210045
2 changed files with 3 additions and 3 deletions

View File

@ -593,7 +593,7 @@ class DocumentationViewer extends Controller {
* *
* @return string * @return string
*/ */
public function getSubmenu() { public function getSubmenuLocation() {
if ($this->currentLevelOnePage) { if ($this->currentLevelOnePage) {
if (self::$separate_submenu && !self::$recursive_submenu) { if (self::$separate_submenu && !self::$recursive_submenu) {
return 'separate'; return 'separate';

View File

@ -5,7 +5,7 @@
<% control EntityPages %> <% control EntityPages %>
<li> <li>
<a href="$Link" class="$LinkingMode">$Title</a> <a href="$Link" class="$LinkingMode">$Title</a>
<% if Top.Submenu = nested %> <% if Top.SubmenuLocation = nested %>
<% if Children %> <% if Children %>
<% include DocSubmenu %> <% include DocSubmenu %>
<% end_if %> <% end_if %>
@ -16,7 +16,7 @@
</div> </div>
<% end_if %> <% end_if %>
<% if Submenu = separate %> <% if SubmenuLocation = separate %>
<% control CurrentLevelOnePage %> <% control CurrentLevelOnePage %>
<% if Children %> <% if Children %>
<div class = "sidebar-box"> <div class = "sidebar-box">