]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_home.php
Some more wrappers added, code cleanups:
[mailer.git] / inc / modules / admin / what-config_home.php
index 610ddfd6bf9a126adcdc89da9d318b3f604e78b9..c134ccf7b67af00e6726aaa0892b374e24c221cd 100644 (file)
@@ -71,9 +71,9 @@ switch ($sub) {
                break;
 
        case 'target': // Set which what-file will be placed in home-page (only modules.php?module=index)
-               if (isGetRequestParameterSet(('home'))) {
+               if (isGetRequestParameterSet('home')) {
                        // Set new home
-                       updateConfiguration('index_home', getRequestParameter(('home')));
+                       updateConfiguration('index_home', getRequestParameter('home'));
                } // END - if
 
                // Load all what menu points
@@ -83,7 +83,6 @@ WHERE `action`='main' AND `what` != '' AND `what` IS NOT NULL AND `locked`='N'
 ORDER BY `sort` ASC", __FILE__, __LINE__);
 
                // Init variables
-               $SW = 2;
                $OUT = '';
 
                // Process all entries
@@ -92,21 +91,17 @@ ORDER BY `sort` ASC", __FILE__, __LINE__);
                        $newHomeLink = '<a href="{%url=modules.php?module=admin&amp;what=config_home&amp;sub=target&amp;home=' . $content['what'] . '%}">{--_IS_NEW_HOME--}</a>';
 
                        // Is this current home?
-                       if ($content['what'] == getConfig('index_home')) {
+                       if ($content['what'] == getIndexHome()) {
                                // Is current home
                                $newHomeLink      = '<div class="admin_mark">{--_IS_CURRENT_HOME--}</div>';
                                $content['title'] = '<div class="admin_mark">' . $content['title'] . '</div>';
                        } // END - if
 
                        // Prepare content
-                       $content['sw'] = $SW;
                        $content['link'] = $newHomeLink;
 
                        // Load row template
                        $OUT .= loadTemplate('admin_config_home_row', true, $content);
-
-                       // Switch color
-                       $SW = 3 - $SW;
                } // END - while
 
                // Free memory
@@ -119,8 +114,7 @@ ORDER BY `sort` ASC", __FILE__, __LINE__);
        default: // Output selection table
                loadTemplate('admin_config_home_main');
                break;
-
-}
+} // END - switch
 
 // [EOF]
 ?>