From db2ca21db73a2ea52155510e1e0300541d6b9ef6 Mon Sep 17 00:00:00 2001 From: anuko Date: Sun, 5 Feb 2017 00:44:17 +0000 Subject: [PATCH] Renamed a function for clarity. --- WEB-INF/lib/mail/Mailer.class.php | 2 +- WEB-INF/lib/ttReportHelper.class.php | 2 +- WEB-INF/templates/footer.tpl | 2 +- invoice_send.php | 2 +- password_reset.php | 2 +- report_send.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/WEB-INF/lib/mail/Mailer.class.php b/WEB-INF/lib/mail/Mailer.class.php index 6b301be1..a52e3c98 100644 --- a/WEB-INF/lib/mail/Mailer.class.php +++ b/WEB-INF/lib/mail/Mailer.class.php @@ -38,7 +38,7 @@ class Mailer { $this->mMailMode = $type; } - function setSendType($value) { + function setMailMode($value) { $this->mMailMode = $value; } diff --git a/WEB-INF/lib/ttReportHelper.class.php b/WEB-INF/lib/ttReportHelper.class.php index ae90374c..56a4aa80 100644 --- a/WEB-INF/lib/ttReportHelper.class.php +++ b/WEB-INF/lib/ttReportHelper.class.php @@ -1574,7 +1574,7 @@ class ttReportHelper { $mailer->setContentType('text/html'); $mailer->setSender(SENDER); $mailer->setReceiver($email); - $mailer->setSendType(MAIL_MODE); + $mailer->setMailMode(MAIL_MODE); if (!$mailer->send($report['name'], $body)) return false; diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index e787236f..3a12372f 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.9.36.3560 | Copyright © Anuko | +  Anuko Time Tracker 1.9.36.3561 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/invoice_send.php b/invoice_send.php index 6d85d544..bc290a66 100644 --- a/invoice_send.php +++ b/invoice_send.php @@ -86,7 +86,7 @@ if ($request->isPost()) { $mailer->setReceiver($cl_receiver); if (isset($cl_cc)) $mailer->setReceiverCC($cl_cc); - $mailer->setSendType(MAIL_MODE); + $mailer->setMailMode(MAIL_MODE); if ($mailer->send($cl_subject, $body)) $msg->add($i18n->getKey('form.mail.invoice_sent')); else diff --git a/password_reset.php b/password_reset.php index 216a81cf..f1780bc2 100644 --- a/password_reset.php +++ b/password_reset.php @@ -105,7 +105,7 @@ if ($request->isPost()) { else $pass_edit_url = $http.'://'.$_SERVER['HTTP_HOST'].'/password_change.php?ref='.$temp_ref; - $sender->setSendType(MAIL_MODE); + $sender->setMailMode(MAIL_MODE); $res = $sender->send($cl_subject, sprintf($user_i18n->getKey('form.reset_password.email_body'), $pass_edit_url)); $smarty->assign('result_message', $res ? $i18n->getKey('form.reset_password.message') : $i18n->getKey('error.mail_send')); } diff --git a/report_send.php b/report_send.php index 9c02ced7..9389cff2 100644 --- a/report_send.php +++ b/report_send.php @@ -83,7 +83,7 @@ if ($request->isPost()) { $mailer->setReceiver($cl_receiver); if (isset($cl_cc)) $mailer->setReceiverCC($cl_cc); - $mailer->setSendType(MAIL_MODE); + $mailer->setMailMode(MAIL_MODE); if ($mailer->send($cl_subject, $body)) $msg->add($i18n->getKey('form.mail.report_sent')); else -- 2.20.1