]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_mediadata.php
Double->single rewrites and possible fixes for revision data
[mailer.git] / inc / modules / admin / what-config_mediadata.php
index a5587ebf90704a195d8864a697214887da992ea2..c4675ab630382d9ca25f9d9f1352b5e69b21cfee 100644 (file)
@@ -46,25 +46,25 @@ addMenuDescription('admin', __FILE__);
 
 if (isFormSent()) {
        // Test timestamp
-       $STAMP = mktime(0, 0, 0, bigintval(postRequestElement('month')), bigintval(postRequestElement('day')), bigintval(postRequestElement('year')));
+       $STAMP = mktime(0, 0, 0, bigintval(postRequestParameter('month')), bigintval(postRequestParameter('day')), bigintval(postRequestParameter('year')));
        if ($STAMP > time()) {
                // Date is in the future!
-               unsetPostRequestElement('ok');
+               unsetPostRequestParameter('ok');
        } else {
                // Remove entries
-               unsetPostRequestElement('day');
-               unsetPostRequestElement('month');
-               unsetPostRequestElement('year');
+               unsetPostRequestParameter('day');
+               unsetPostRequestParameter('month');
+               unsetPostRequestParameter('year');
 
                // Remember timestamp
-               setRequestPostElement('mt_start', $STAMP);
+               setPostRequestParameter('mt_start', $STAMP);
        }
 
        // Convert some data
-       setRequestPostElement('mt_stage', bigintval(postRequestElement('mt_stage')));
-       if (postRequestElement('mt_stage') <= countSumTotalData('CONFIRMED', 'user_data', 'userid', 'status', true)) {
+       setPostRequestParameter('mt_stage', bigintval(postRequestParameter('mt_stage')));
+       if (postRequestParameter('mt_stage') <= countSumTotalData('CONFIRMED', 'user_data', 'userid', 'status', true)) {
                // Not enougth!
-               unsetPostRequestElement('ok');
+               unsetPostRequestParameter('ok');
        }
 }