]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_holiday.php
Since Wernis API 0.6-BETA SHA256 is the default now
[mailer.git] / inc / modules / admin / what-config_holiday.php
index 00d9de8032e5d4562b85117964823644dbbbbf60..deef62f002874f3f020b9e0d9eb4d9716f2609b4 100644 (file)
@@ -16,8 +16,8 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 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 *
@@ -43,7 +43,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 // Add description as navigation point
 addYouAreHereLink('admin', __FILE__);
 
-if (isFormSent()) {
+if (isFormSent('save_config')) {
        // Save settings
        adminSaveSettingsFromPostData();
 } else {
@@ -56,12 +56,10 @@ if (isFormSent()) {
        } // END - foreach
 
        // Set all entries
-       foreach (array('holiday_mode') as $entry) {
-               $content[$entry . '_' . strtolower(getConfig($entry))] = ' 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]