]> git.mxchange.org Git - mailer.git/commitdiff
Fix was wrong... opps
authorRoland Häder <roland@mxchange.org>
Tue, 30 Sep 2008 20:55:11 +0000 (20:55 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 30 Sep 2008 20:55:11 +0000 (20:55 +0000)
inc/databases.php
inc/libs/newsletter_functions.php
inc/modules/admin/what-send_newsletter.php

index b0a7bd961e6eef1b94d9b4787a89a983bbceedc3..5261516ece1b7e142c2ccff3a8b8c4a022ce91b1 100644 (file)
@@ -113,7 +113,7 @@ define('USAGE_BASE', "usage");
 define('SERVER_URL', "http://www.mxchange.org");
 
 // This current patch level
-define('CURR_SVN_REVISION', "427");
+define('CURR_SVN_REVISION', "428");
 
 // Take a prime number which is long (if you know a longer one please try it out!)
 define('_PRIME', 591623);
index 564894e75cec258f90ff442db7e4ba79bc97046e..2b03a73f11db3ee23eee893ff35f514d59b71bfc 100644 (file)
@@ -167,17 +167,17 @@ function SEND_NEWSLETTER($TO, $SUBJECT, $MSG, $MODE)
                // Automatically insert URLs into newsletter
                if ((EXT_IS_ACTIVE("html")) && ($MODE == "html")) {
                        // Send HTML mail
-                       SEND_EMAIL($TO, $SUBJECT, array('text' => HTML_INSERT_URLS($MSG)), "Y");
+                       SEND_EMAIL($TO, $SUBJECT, HTML_INSERT_URLS($MSG), "Y");
                } else {
                        // Send normal mail
-                       SEND_EMAIL($TO, $SUBJECT, array('text' => NL_INSERT_URLS($MSG)), "N");
+                       SEND_EMAIL($TO, $SUBJECT, NL_INSERT_URLS($MSG), "N");
                }
        } else {
                // Regular send-out
                if ((EXT_IS_ACTIVE("html")) && ($MODE == "html")) {
-                       SEND_EMAIL($TO, $SUBJECT, array('text' => $MSG), "Y");
+                       SEND_EMAIL($TO, $SUBJECT, $MSG, "Y");
                } else {
-                       SEND_EMAIL($TO, $SUBJECT, array('text' => $MSG), "N");
+                       SEND_EMAIL($TO, $SUBJECT, $MSG, "N");
                }
        }
 }
index 35b7e5eba6f3ce7bb76fd40694bff68f8380d9ad..3b2a13d966335ebdf3783e7bb8e0b99170a20519 100644 (file)
@@ -67,7 +67,7 @@ if (isset($_POST['ok']))
                        $_POST['text'] = COMPILE_CODE($_POST['text']);
 
                        // Load template
-                       $msg = LOAD_EMAIL_TEMPLATE($template, $_POST['text'], $id);
+                       $msg = LOAD_EMAIL_TEMPLATE($template, array('text' => $_POST['text']), $id);
 
                        // ... and send it away!
                        SEND_NEWSLETTER($email, $_POST['subject'], $msg, $_POST['mode']);