From 0516189ab96e81734d0f384fcd651e9a8bebf898 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 24 Jul 2010 01:41:21 +0000 Subject: [PATCH] Fix for missing 'you are here' navigation and redirect added to sponsor login if already logged in --- inc/modules/guest/what-sponsor_login.php | 5 ++++- inc/mysql-manager.php | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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 -- 2.39.2