]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_admin.php
Old naming convention fixed
[mailer.git] / inc / modules / admin / what-config_admin.php
index 6db300e1794fbb34e94284a18d6718dd801d1661..9c7eb830f1e1e68137a1e36b6f0fcf3535437535 100644 (file)
 
 // Some security stuff...
 if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
-       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
        require($INC);
 }
 // Add description as navigation point
 ADD_DESCR('admin', __FILE__);
 
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
        // Save configuration
        ADMIN_SAVE_SETTINGS_POST();
 } else {
        // Prepare data for the template
        switch (getConfig('admin_menu'))
        {
-       case "NEW":
-               define('__ADMIN_MENU_NEW', ' chkecked="checked"');
-               define('__ADMIN_MENU_OLD'   , '');
-               break;
+               case "NEW":
+                       define('__ADMIN_MENU_NEW', ' checked="checked"');
+                       define('__ADMIN_MENU_OLD'   , '');
+                       break;
 
-       case "OLD":
-               define('__ADMIN_MENU_NEW', '');
-               define('__ADMIN_MENU_OLD'   , ' chkecked="checked"');
-               break;
+               case "OLD":
+                       define('__ADMIN_MENU_NEW', '');
+                       define('__ADMIN_MENU_OLD'   , ' checked="checked"');
+                       break;
        }
 
        // Display form