X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fadmin%2Fwhat-config_beg.php;h=b720966c23b19dec3c9fdbbfc35df579580c4bec;hb=53a63bee7a3dc419272e6dc2fc7c801e99ef0712;hp=18f1c1aba545e0123391c2d7c267746cd49bd4dd;hpb=c3b4eaf29946349ff058691db2dcb615a5379bb2;p=mailer.git diff --git a/inc/modules/admin/what-config_beg.php b/inc/modules/admin/what-config_beg.php index 18f1c1aba5..b720966c23 100644 --- a/inc/modules/admin/what-config_beg.php +++ b/inc/modules/admin/what-config_beg.php @@ -44,10 +44,8 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); if (isFormSent()) { - // Translate german decimal commas to computer decimal dots - 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'))); + // Replace german decimal comma with computer decimal dot + convertCommaToDotInPostDataArray(array('beg_points', 'beg_points_max', 'beg_notify_bonus')); // Save settings adminSaveSettingsFromPostData(); @@ -58,13 +56,10 @@ if (isFormSent()) { setConfigEntry('beg_rallye_disable_notify', postRequestParameter('beg_rallye_disable_notify')); } else { // Prepare constants for the template - $content['points'] = translateComma(getBegPoints() , false); - $content['points_max'] = translateComma(getBegPointsMax() , false); - $content['notify_bonus'] = translateComma(getBegNotifyBonus() , false); - $content['timeout'] = createTimeSelections(getBegTimeout() , 'beg_timeout' , 'Dhm'); - $content['userid_timeout'] = createTimeSelections(getBegUseridTimeout(), 'beg_userid_timeout', 'Dhm'); - $content['ip_timeout'] = createTimeSelections(getBegIpTimeout() , 'beg_ip_timeout' , 'Dhm'); - $content['wait_selection'] = createTimeSelections(getBegNotifyWait() , 'beg_notify_wait' , 'ms' ); + $content['timeout'] = createConfigurationTimeSelections('beg_timeout' , 'Dhm'); + $content['userid_timeout'] = createConfigurationTimeSelections('beg_userid_timeout', 'Dhm'); + $content['beg_ip_timeout'] = createConfigurationTimeSelections('beg_ip_timeout' , 'Dhm'); + $content['wait_selection'] = createConfigurationTimeSelections('beg_notify_wait' , 'ms' ); // Init all Y/N selections foreach (array('rallye', 'active', 'mode', 'rallye_enable_notify', 'rallye_disable_notify', 'new_member_notify', 'include_own') as $entry) { @@ -90,7 +85,7 @@ if (isFormSent()) { $content['beg_mode_' . strtolower(getBegMode())] = ' checked="checked"'; // Member selection box - $content['form_selection'] = addMemberSelectionBox(getBegUserid(), false, true, true, 'beg_userid'); + $content['beg_userid'] = addMemberSelectionBox(getBegUserid(), false, true, true, 'beg_userid'); // Load form template loadTemplate('admin_config_beg', false, $content);