X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fwrapper-functions.php;h=9b27b66fee470c90631668d7dd5dce21a94b41ae;hp=81fbc2f8b03e1ee70af368e25d0b0e0658ac7259;hb=a44235215a481489b76a39269cf98b170901186b;hpb=73e9d78e610057f6c6d311328b3ad438ad017791 diff --git a/inc/wrapper-functions.php b/inc/wrapper-functions.php index 81fbc2f8b0..9b27b66fee 100644 --- a/inc/wrapper-functions.php +++ b/inc/wrapper-functions.php @@ -2442,12 +2442,33 @@ function firstCharUpperCase ($str) { } // Shortens calls with configuration entry as first argument (the second will become obsolete in the future) -function createConfigurationTimeSelections ($configEntry, $stamps) { +function createConfigurationTimeSelections ($configEntry, $stamps, $align = 'center') { // Get the configuration entry $configValue = getConfig($configEntry); // Call inner method - return createTimeSelections($configValue, $configEntry, $stamps); + return createTimeSelections($configValue, $configEntry, $stamps, $align); +} + +// Shortens converting of German comma to Computer's version in POST data +function convertCommaToDotInPostData ($postEntry) { + // Read and convert given entry + $postValue = convertCommaToDot(postRequestParameter($postEntry)); + + // ... and set it again + setPostRequestParameter($postEntry, $postValue); +} + +// Converts German commas to Computer's version in all entries +function convertCommaToDotInPostDataArray (array $postEntries) { + // Replace german decimal comma with computer decimal dot + foreach ($postEntries as $entry) { + // Is the entry there? + if (isPostRequestParameterSet($entry)) { + // Then convert it + convertCommaToDotInPostData($entry); + } // END - if + } // END - foreach } // [EOF]