aboutsummaryrefslogtreecommitdiff
path: root/classes/Payment.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/Payment.php')
-rw-r--r--classes/Payment.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/classes/Payment.php b/classes/Payment.php
index bab55be..59dde87 100644
--- a/classes/Payment.php
+++ b/classes/Payment.php
@@ -49,8 +49,9 @@ class Payment extends Model {
$mailer = new Mailer($this->pdo);
$mailer->setOffer($this->getOffer());
- $mailer->Subject = 'Your invoice has been paid';
- $mailer->Body = Correspondence::__r('mail-offer-paid', $this->getOffer()->getContact()->language, $this);
+ $lang = $this->getOffer()->getContact()->language;
+ $mailer->Subject = Correspondence::__('mail-offer-paid-subject', $lang);
+ $mailer->Body = Correspondence::__r('mail-offer-paid', $lang, $this);
return $mailer;
}