X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_holiday.php;h=deef62f002874f3f020b9e0d9eb4d9716f2609b4;hp=aaa3f3dd35ebfe28b33caeb0b87eb50a3df22975;hb=cd7d344ea7007cfa20413acd3e03e50f0ab86d86;hpb=c8d76610eb94093d4eed4fcd8a6cb72e74c8f6d8 diff --git a/inc/modules/admin/what-config_holiday.php b/inc/modules/admin/what-config_holiday.php index aaa3f3dd35..deef62f002 100644 --- a/inc/modules/admin/what-config_holiday.php +++ b/inc/modules/admin/what-config_holiday.php @@ -16,8 +16,8 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009, 2010 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2013 by Mailer Developer Team * + * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -41,14 +41,14 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { } // END - if // Add description as navigation point -addMenuDescription('admin', __FILE__); +addYouAreHereLink('admin', __FILE__); -if (isFormSent()) { +if (isFormSent('save_config')) { // Save settings adminSaveSettingsFromPostData(); } else { // Prepare constants for the template - $content['holiday_lock'] = createTimeSelections(getConfig('holiday_lock') , 'holiday_lock' , 'WDh'); + $content['holiday_lock'] = createConfigurationTimeSelections('holiday_lock', 'WDh'); // Init all entries foreach (array('holiday_mode_direct','holiday_mode_reset') as $entry) { @@ -56,12 +56,10 @@ if (isFormSent()) { } // END - foreach // Set all entries - foreach (array('holiday_mode') as $entry) { - $content[$entry . '_' . strtolower(getConfig('holiday_mode'))] = ' checked="checked"'; - } // END - if + $content = merge_array($content, getCheckedConfig(array('holiday_mode'))); // Load form template - loadTemplate('admin_config_holiday', false, $content); + loadTemplate('admin_config_holiday', FALSE, $content); } // [EOF]