From: Roland Häder <roland@mxchange.org> Date: Tue, 2 Oct 2012 21:13:05 +0000 (+0000) Subject: Final fix for top navigation X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2290ae1a5f635d475b3886972a95a8fdb52bd3ce;p=mailer.git Final fix for top navigation --- diff --git a/inc/mysql-manager.php b/inc/mysql-manager.php index 85591a9fc2..ccb978024b 100644 --- a/inc/mysql-manager.php +++ b/inc/mysql-manager.php @@ -166,8 +166,8 @@ function addYouAreHereLink ($accessLevel, $FQFN, $return = false) { $OUT = $prefix . '<strong><a class="you_are_here" href="{%url=modules.php?module=' . $modCheck . '&' . $type . '=' . $search . $linkAdd . '%}">' . getTitleFromMenu($accessLevel, $search, $type, $ADD) . '</a></strong>'; // Can we close the you-are-here navigation? - //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'type=' . $type . ',getWhat()=' . getWhat() . ',accessLevel=' . $accessLevel . ',isWhatSet()=' . intval(isWhatSet())); - if (($type == 'what') || (($type == 'action') && ((!isWhatSet()) || ($accessLevel == 'admin')))) { + /* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'type=' . $type . ',getWhat()=' . getWhat() . ',accessLevel=' . $accessLevel . ',isWhatSet()=' . intval(isWhatSet())); + if (($type == 'what') || (($type == 'action') && ((!isWhatSet()) || (($accessLevel == 'admin') && (getWhat() == 'welcome'))))) { //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'type=' . $type); // Add closing div and br-tag $GLOBALS['nav_depth'] = '0';