]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_admin.php
Some functions rewritten to hungarian notation, handling of array rewritten
[mailer.git] / inc / modules / admin / what-config_admin.php
index 6592affb8889b4599fd9e308e139c625c22adc2b..8f42cfc5ec5dbad039460e8c48184124fe6ba496 100644 (file)
@@ -37,23 +37,23 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
        require($INC);
 }
 // Add description as navigation point
-ADD_DESCR("admin", basename(__FILE__));
+ADD_DESCR("admin", __FILE__);
 
 if (isset($_POST['ok'])) {
        // Save configuration
        ADMIN_SAVE_SETTINGS($_POST);
 } else {
        // Prepare data for the template
-       switch ($_CONFIG['admin_menu'])
+       switch (getConfig('admin_menu'))
        {
        case "NEW":
-               define('__ADMIN_MENU_NEW', ' checked');
+               define('__ADMIN_MENU_NEW', " checked=\"checked\"");
                define('__ADMIN_MENU_OLD'   , "");
                break;
 
        case "OLD":
                define('__ADMIN_MENU_NEW', "");
-               define('__ADMIN_MENU_OLD'   , ' checked');
+               define('__ADMIN_MENU_OLD'   , " checked=\"checked\"");
                break;
        }