aboutsummaryrefslogtreecommitdiff
path: root/classes/Payment.php
diff options
context:
space:
mode:
authorCamil Staps2016-08-01 08:40:38 +0200
committerCamil Staps2016-08-01 08:40:38 +0200
commit72766ab34d4b36cf38eb0062dc7bc17db8f72998 (patch)
tree729aec2317567208cb4222f7dc62c039c76de825 /classes/Payment.php
parent0.5.3 frontend updates (diff)
Internationalisation: email subjects
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;
}