]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-send_newsletter.php
Even more rewrites/fixes from EL branch (please report any broken part after you...
[mailer.git] / inc / modules / admin / what-send_newsletter.php
index 6711aa3ede20c678cc0a41d46ddead231ccb4938..22c3685833d5cbc586f4cb32bb3c0ea47b57ca10 100644 (file)
@@ -18,6 +18,7 @@
  * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -69,21 +70,21 @@ ORDER BY
                        }
 
                        // Compile message
-                       setPostRequestParameter('text', compileCode(postRequestParameter('text')));
+                       setPostRequestParameter('text', preCompileCode(postRequestParameter('text')));
 
                        // Load template
                        $message = loadEmailTemplate($template, array('text' => postRequestParameter('text')), $content['userid']);
 
                        // ... and send it away!
                        sendNewsletter($content['email'], postRequestParameter('subject'), $message, postRequestParameter('mode'));
-               }
-
-               // Free memory
-               SQL_FREERESULT($result);
+               } // END - while
 
                // Output message
                loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NL_SEND_DONE'));
-       }
+       } // END - if
+
+       // Free memory
+       SQL_FREERESULT($result);
 } else {
        // Copy data into constants for the template and load it
        $content['datestamp'] = generateDateTime(time(), 3);