Wrapper functions for converting commas in configuration added, ext-coupon continued
[mailer.git] / inc / modules / admin / what-config_beg.php
index 18f1c1aba545e0123391c2d7c267746cd49bd4dd..84062756e2c508246bc9724fda9619a6cdcceb76 100644 (file)
@@ -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();