From: Roland Häder Date: Sat, 24 Jul 2010 01:41:21 +0000 (+0000) Subject: Fix for missing 'you are here' navigation and redirect added to sponsor login if... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0516189ab96e81734d0f384fcd651e9a8bebf898;p=mailer.git Fix for missing 'you are here' navigation and redirect added to sponsor login if already logged in --- diff --git a/inc/modules/guest/what-sponsor_login.php b/inc/modules/guest/what-sponsor_login.php index bdcd447680..af26e823b6 100644 --- a/inc/modules/guest/what-sponsor_login.php +++ b/inc/modules/guest/what-sponsor_login.php @@ -48,7 +48,10 @@ addMenuDescription('guest', __FILE__); if ((!isExtensionActive('sponsor'))) { loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('sponsor')); return; -} // END - if +} elseif (isSponsor()) { + // Is already a logged-in sponsor + redirectToUrl('modules.php?module=sponsor'); +} $mode = ''; if (isGetRequestParameterSet('mode')) { diff --git a/inc/mysql-manager.php b/inc/mysql-manager.php index 6100e64225..63a870844f 100644 --- a/inc/mysql-manager.php +++ b/inc/mysql-manager.php @@ -125,7 +125,7 @@ function addMenuDescription ($accessLevel, $FQFN, $return = false) { } // Begin the navigation line - if ((!isset($GLOBALS['nav_depth'])) && ($return === false)) { + if (!isset($GLOBALS['nav_depth'])) { // Init nav_depth $GLOBALS['nav_depth'] = '0'; @@ -147,7 +147,7 @@ function addMenuDescription ($accessLevel, $FQFN, $return = false) { if (substr($search, -4, 4) == '.php') { // Remove the .php $search = substr($search, 0, -4); - } // END - i + } // END - if if (((isExtensionInstalledAndNewer('sql_patches', '0.2.3')) && (getConfig('youre_here') == 'Y')) || ((isAdmin()) && ($modCheck == 'admin'))) { // Output HTML code