mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Fix for email template translations
This commit is contained in:
parent
00dda9769d
commit
0ff47f4ee1
@ -62,14 +62,14 @@ trait SendsEmails
|
||||
$entityType = ENTITY_INVOICE;
|
||||
}
|
||||
|
||||
$template = '<div>$client,</div><br>';
|
||||
$template = '<div>$client,</div><br />';
|
||||
|
||||
if ($this->hasFeature(FEATURE_CUSTOM_EMAILS) && $this->email_design_id != EMAIL_DESIGN_PLAIN) {
|
||||
$template .= '<div>' . trans("texts.{$entityType}_message_button", ['amount' => '$amount']) . '</div><br>' .
|
||||
'<div style="text-align: center;">$viewButton</div><br>';
|
||||
$template .= '<div>' . trans("texts.{$entityType}_message_button", ['amount' => '$amount']) . '</div><br />' .
|
||||
'<div style="text-align: center;">$viewButton</div><br />';
|
||||
} else {
|
||||
$template .= '<div>' . trans("texts.{$entityType}_message", ['amount' => '$amount']) . '</div><br>' .
|
||||
'<div>$viewLink</div><br>';
|
||||
$template .= '<div>' . trans("texts.{$entityType}_message", ['amount' => '$amount']) . '</div><br />' .
|
||||
'<div>$viewLink</div><br />';
|
||||
}
|
||||
|
||||
if ($message) {
|
||||
|
Loading…
Reference in New Issue
Block a user