]> git.mxchange.org Git - mailer.git/blobdiff - inc/reset/reset_holiday.php
New naming convention applied to many functions, see #118 for details
[mailer.git] / inc / reset / reset_holiday.php
index ccfca682f4265fddcd45c445896a652e164f810a..a98000981bb9fb3ac8f57b839e9cae0a3fb37499 100644 (file)
@@ -74,14 +74,14 @@ LIMIT 1",
 
                        // Prepare all data for the template
                        $content = array(
-                               'activated' => MAKE_DATETIME($content['holiday_activated'], "1"),
-                               'start'     => MAKE_DATETIME($content['holiday_start']    , "1"),
-                               'end'       => MAKE_DATETIME($content['holiday_end']      , "1")
+                               'activated' => generateDateTime($content['holiday_activated'], "1"),
+                               'start'     => generateDateTime($content['holiday_start']    , "1"),
+                               'end'       => generateDateTime($content['holiday_end']      , "1")
                        );
 
                        // Send email to user
                        $msg = LOAD_EMAIL_TEMPLATE("member_holiday_activated", $content, $content['userid']);
-                       SEND_EMAIL($content['userid'], getMessage('HOLIDAY_MEMBER_ACTIVATED_SUBJ'), $msg);
+                       sendEmail($content['userid'], getMessage('HOLIDAY_MEMBER_ACTIVATED_SUBJ'), $msg);
 
                        // Update account
                        ADD_SQL(SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_user_data`