Inconsistency between echo and print() fixed to OUTPUT_HTML() (not all)
[mailer.git] / inc / monthly / monthly_newsletter.php
index c1108be6af88c35bc6a840ec905268e03e5a090c..ca8e2baf420f24cebafe7f71aae41d2ab4eea9ec 100644 (file)
@@ -46,7 +46,7 @@ if (!defined('__SECURITY')) {
 
 // Do not execute when script is in CSS mode or no daily reset
 if ((getOutputMode() == 1) || (!isResetModeEnabled())) return;
-//* DEBUG: */ echo basename(__FILE__)."<br />\n";
+//* DEBUG: */ OUTPUT_HTML(basename(__FILE__)."<br />");
 
 // Get current month (2 digits)
 $curr = date('m', time());
@@ -62,11 +62,11 @@ if (getConfig('last_month') != $curr) {
                                array(bigintval($content['userid'])), __FILE__, __LINE__);
 
                        // Send email to him
-                       $message = LOAD_EMAIL_TEMPLATE("member_newsletter_reset", true, bigintval($content['userid']));
+                       $message = LOAD_EMAIL_TEMPLATE('member_newsletter_reset', true, bigintval($content['userid']));
                        sendEmail($content['email'], getMessage('NL_MEMBER_RESET_SUBJECT'), $message);
 
                        // Send email to admin
-                       sendAdminNotification(getMessage('NL_ADMIN_SUBJECT'), "admin_newsletter_reset", array(), getUserId());
+                       sendAdminNotification(getMessage('NL_ADMIN_SUBJECT'), 'admin_newsletter_reset', array(), getUserId());
                } // END - if
 
                // Free memory