New naming convention applied to many functions, see #118 for details
[mailer.git] / inc / mails / bonus_mails.php
index baddc4ad7a4340aeab1a56cb22151d1455bc7fa0..b6b4d8102a47e1f37ab3509448cbde310bbdbc64 100644 (file)
@@ -48,7 +48,7 @@ if (!defined('__SECURITY')) {
 if ($GLOBALS['output_mode'] == 1) return;
 
 // Create timemark from saved month
-$mark = mktime(0, 0, 0, getConfig('last_month'), date("d", time()), date('Y', time()));
+$mark = mktime(0, 0, 0, getConfig('last_month'), date('d', time()), date('Y', time()));
 $sql = ''; $mode = '';
 
 // Shall I sent activation or deactivation mail?
@@ -111,7 +111,7 @@ LIMIT 1",
                        } else {
                                // Send normal notification mail to the members
                                $message = LOAD_EMAIL_TEMPLATE('bonus_' . $mode . '_notify', array(), $content['userid']);
-                               SEND_EMAIL($content['email'], $subject, $message);
+                               sendEmail($content['email'], $subject, $message);
                        }
                } // END - while
 
@@ -124,7 +124,7 @@ LIMIT 1",
                        $URL = 'modules.php?module=index&what=login';
 
                        // Insert mail
-                       ADD_BONUS_MAIL_TO_QUEUE($subject, $message, $RECEIVER, getConfig('bonus_notify_points'), getConfig('bonus_notify_wait'), $URL, 0, 'normal', SQL_NUMROWS($result_main));
+                       addBonusMailToQueue($subject, $message, $RECEIVER, getConfig('bonus_notify_points'), getConfig('bonus_notify_wait'), $URL, 0, 'normal', SQL_NUMROWS($result_main));
                } // END - if
        } // END - if