From 861094d1642885638794be43308ee3163fcd3a24 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 7 Sep 2010 15:09:50 +0000 Subject: [PATCH] Fixes for holiday configuration --- inc/modules/admin/what-config_holiday.php | 7 ++++++- templates/de/html/admin/admin_config_holiday.tpl | 6 +++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/inc/modules/admin/what-config_holiday.php b/inc/modules/admin/what-config_holiday.php index 865c27fdaa..f93977a7f0 100644 --- a/inc/modules/admin/what-config_holiday.php +++ b/inc/modules/admin/what-config_holiday.php @@ -50,7 +50,12 @@ if (isFormSent()) { adminSaveSettingsFromPostData(); } else { // Prepare constants for the template - $content['holiday_locked'] = createTimeSelections(getConfig('holiday_lock') , 'holiday_lock' , 'WDh'); + $content['holiday_lock'] = createTimeSelections(getConfig('holiday_lock') , 'holiday_lock' , 'WDh'); + + // Init all entries + foreach (array('holiday_mode_direct','holiday_mode_reset') as $entry) { + $content[$entry] = ''; + } // END - foreach // Set all entries foreach (array('holiday_mode') as $entry) { diff --git a/templates/de/html/admin/admin_config_holiday.tpl b/templates/de/html/admin/admin_config_holiday.tpl index e4e6f29ad4..88dac2b832 100644 --- a/templates/de/html/admin/admin_config_holiday.tpl +++ b/templates/de/html/admin/admin_config_holiday.tpl @@ -15,14 +15,14 @@ {--ADMIN_HOLIDAY_LOCKED--}: - $content[locked] + $content[holiday_lock] {--ADMIN_HOLIDAY_MODE--}: - + {--ADMIN_HOLIDAY_MODE_RESET--}
- + {--ADMIN_HOLIDAY_MODE_DIRECT--} -- 2.39.5