]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_beg.php
Fix for missing array elements
[mailer.git] / inc / modules / admin / what-config_beg.php
index 55636bc02e56a8e83099f1cfed96d9ac91592114..d164cc4d0a326adae7614a0629a623552f539d0c 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
  * Mailer v0.2.1-FINAL                                Start: 01/09/2005 *
- * ================                             Last change: 01/09/2005 *
+ * ===================                          Last change: 01/09/2005 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : what-config_beg.php                              *
@@ -18,6 +18,7 @@
  * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -46,17 +47,17 @@ addMenuDescription('admin', __FILE__);
 
 if (isFormSent()) {
        // Translate german decimal commas to computer decimal dots
-       setRequestPostElement('beg_points'      , convertCommaToDot(postRequestElement('beg_points')      ));
-       setRequestPostElement('beg_points_max'  , convertCommaToDot(postRequestElement('beg_points_max')  ));
-       setRequestPostElement('beg_notify_bonus', convertCommaToDot(postRequestElement('beg_notify_bonus')));
+       setPostRequestParameter('beg_points'      , convertCommaToDot(postRequestParameter('beg_points')      ));
+       setPostRequestParameter('beg_points_max'  , convertCommaToDot(postRequestParameter('beg_points_max')  ));
+       setPostRequestParameter('beg_notify_bonus', convertCommaToDot(postRequestParameter('beg_notify_bonus')));
 
        // Save settings
        adminSaveSettingsFromPostData();
 
        // Remember new settings
-       setConfigEntry('beg_rallye'       , postRequestElement('beg_rallye'));
-       setConfigEntry('beg_ral_en_notify', postRequestElement('beg_ral_en_notify'));
-       setConfigEntry('beg_ral_di_notify', postRequestElement('beg_ral_di_notify'));
+       setConfigEntry('beg_rallye'       , postRequestParameter('beg_rallye'));
+       setConfigEntry('beg_ral_en_notify', postRequestParameter('beg_ral_en_notify'));
+       setConfigEntry('beg_ral_di_notify', postRequestParameter('beg_ral_di_notify'));
 } else {
        // Prepare constants for the template
        $content['points']           = translateComma(getConfig('beg_points')      , false);
@@ -71,7 +72,7 @@ if (isFormSent()) {
        foreach (array('rallye','activate','mode','ral_en_notify','ral_di_notify','new_mem_notify','include_own') as $entry) {
                $content[$entry . '_y'] = '';
                $content[$entry . '_n'] = '';
-               $content[$entry . '_' . strtolower(getConfig('rallye_' . $entry))] = ' checked="checked"';
+               $content[$entry . '_' . strtolower(getConfig('beg_' . $entry))] = ' checked="checked"';
        } // END - foreach
 
        // Init elements