Mahor rewrite:
[mailer.git] / inc / modules / admin / what-config_holiday.php
index 58a557e14a52e2f5fd64600c74d4995de6091501..56f823b9280445123ce75ffbfeb8853bbe061437 100644 (file)
@@ -48,10 +48,10 @@ if (isset($_POST['ok']))
  else
 {
        // Prepare constants for the template
-       define('__MAX_VALUE', $_CONFIG['holiday_max']);
-       define('__LOCKED'   , CREATE_TIME_SELECTIONS($_CONFIG['holiday_lock']  , "holiday_lock"  , "WDh"));
+       define('__MAX_VALUE', getConfig('holiday_max'));
+       define('__LOCKED'   , CREATE_TIME_SELECTIONS(getConfig('holiday_lock')  , "holiday_lock"  , "WDh"));
 
-       switch ($_CONFIG['holiday_mode']) {
+       switch (getConfig('holiday_mode')) {
        case "RESET":
                define('__RESET_DEFAULT' , " checked=\"checked\"");
                define('__DIRECT_DEFAULT', "");