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
*/
public function getSubmenu() {
public function getSubmenuLocation() {
if ($this->currentLevelOnePage) {
if (self::$separate_submenu && !self::$recursive_submenu) {
return 'separate';

View File

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