]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_holiday.php
Some fixes for surfbar extension (#123), double->single, misc cleanups/fixes
[mailer.git] / inc / modules / admin / what-config_holiday.php
index 5841be23d7afeae147e9cae72fd68052a3ec9390..21d9a2798fadf59986ce53733cde27fc0d6316f4 100644 (file)
@@ -45,31 +45,29 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
 // Add description as navigation point
 ADD_DESCR('admin', __FILE__);
 
-if (IS_FORM_SENT())
-{
+if (isFormSent()) {
        // Save settings
        ADMIN_SAVE_SETTINGS_POST();
-}
- else
-{
+} else {
        // Prepare constants for the template
        define('__MAX_VALUE', getConfig('holiday_max'));
-       define('__LOCKED'   , CREATE_TIME_SELECTIONS(getConfig('holiday_lock')  , "holiday_lock"  , "WDh"));
+       define('__LOCKED'   , createTimeSelections(getConfig('holiday_lock')  , "holiday_lock"  , "WDh"));
 
        switch (getConfig('holiday_mode')) {
-       case "RESET":
-               define('__RESET_DEFAULT' , ' chkecked="checked"');
-               define('__DIRECT_DEFAULT', '');
-               break;
+               case "RESET":
+                       define('__RESET_DEFAULT' , ' checked="checked"');
+                       define('__DIRECT_DEFAULT', '');
+                       break;
 
-       case "DIRECT":
-               define('__RESET_DEFAULT' , '');
-               define('__DIRECT_DEFAULT', ' chkecked="checked"');
-               break;
+               case 'DIRECT':
+                       define('__RESET_DEFAULT' , '');
+                       define('__DIRECT_DEFAULT', ' checked="checked"');
+                       break;
        }
 
        // Load form template
        LOAD_TEMPLATE("admin_config_holiday");
 }
+
 //
 ?>