]> git.mxchange.org Git - mailer.git/commitdiff
Fix for missing 'you are here' navigation and redirect added to sponsor login if...
authorquix0r <quix0r@mxchange.org>
Sat, 24 Jul 2010 01:41:21 +0000 (01:41 +0000)
committerquix0r <quix0r@mxchange.org>
Sat, 24 Jul 2010 01:41:21 +0000 (01:41 +0000)
inc/modules/guest/what-sponsor_login.php
inc/mysql-manager.php

index bdcd447680a27533004602c8978c58d890f71da1..af26e823b616dfe82dda1a6ef4f55006e012caca 100644 (file)
@@ -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')) {
index 6100e642258b06fed0d749c47479a9514254723e..63a870844f41cf45e66d6b84566330047f0294f6 100644 (file)
@@ -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