]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-send_newsletter.php
Fix for non-working what-config_payouts
[mailer.git] / inc / modules / admin / what-send_newsletter.php
index d964131028492fafa03e58699543b1470679f7d4..bbb7c17a51dc1ec24743e68c5c2b437f02a4cc5b 100644 (file)
@@ -17,7 +17,7 @@
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
@@ -45,7 +45,7 @@ addYouAreHereLink('admin', __FILE__);
 
 if (isFormSent()) {
        $result = SQL_QUERY("SELECT
-       `userid`, `email`
+       `userid`,`email`
 FROM
        `{?_MYSQL_PREFIX?}_user_data`
 WHERE
@@ -59,22 +59,22 @@ ORDER BY
                        $template = 'newsletter';
 
                        // Check for extension and sending-mode
-                       if (!isExtensionActive('html_mail', true) && (postRequestParameter('mode') == 'html')) {
+                       if (!isExtensionActive('html_mail', true) && (postRequestElement('mode') == 'html')) {
                                // Set mode to text mode
-                               postRequestParameter('mode') == 'text';
-                       } elseif (postRequestParameter('mode') == 'html') {
+                               postRequestElement('mode') == 'text';
+                       } elseif (postRequestElement('mode') == 'html') {
                                // Set HTML templates
                                $template = 'newsletter_html';
                        }
 
                        // Compile message
-                       setPostRequestParameter('text', preCompileCode(postRequestParameter('text')));
+                       setPostRequestElement('text', preCompileCode(postRequestElement('text')));
 
                        // Load template
-                       $message = loadEmailTemplate($template, array('text' => postRequestParameter('text')), $content['userid']);
+                       $message = loadEmailTemplate($template, array('text' => postRequestElement('text')), $content['userid']);
 
                        // ... and send it away!
-                       sendNewsletter($content['email'], postRequestParameter('subject'), $message, postRequestParameter('mode'));
+                       sendNewsletter($content['email'], postRequestElement('subject'), $message, postRequestElement('mode'));
                } // END - while
 
                // Output message