X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_birthday.php;h=d3e002a43263213408fa22534b7ddaf6f32fd605;hp=73206717aa2967258d15c2565615b62361e33aac;hb=e9da1508b2a3ccbf63adc999981674740a47e074;hpb=c3b4eaf29946349ff058691db2dcb615a5379bb2 diff --git a/inc/modules/admin/what-config_birthday.php b/inc/modules/admin/what-config_birthday.php index 73206717aa..d3e002a432 100644 --- a/inc/modules/admin/what-config_birthday.php +++ b/inc/modules/admin/what-config_birthday.php @@ -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 - 2015 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,22 +43,12 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { // Add description as navigation point addYouAreHereLink('admin', __FILE__); -if (isFormSent()) { +if (isFormSent('save_config')) { // Save configuration adminSaveSettingsFromPostData(); } else { - // Init all other templates - foreach (array('active_y','active_n','mode_direct','mode_ref') as $entry) { - $content[$entry] = ''; - } // END - foreach - - // Set current selections - foreach (array('active','mode') as $entry) { - $content[$entry . '_' . strtolower(getConfig('birthday_' . $entry))] = ' checked="checked"'; - } // END - foreach - // Display form - loadTemplate('admin_config_birthday', false, $content); + loadTemplate('admin_config_birthday'); } // [EOF]