Update ContactMailer.php

a small fix to payment links of email templates

this links is relating to payments and not to invoice view
This commit is contained in:
samoilis 2016-03-09 02:00:19 +02:00
parent 5bedad47e4
commit e2f09021c6

View File

@ -259,7 +259,7 @@ class ContactMailer extends Mailer
foreach (Gateway::$paymentTypes as $type) { foreach (Gateway::$paymentTypes as $type) {
$camelType = Gateway::getPaymentTypeName($type); $camelType = Gateway::getPaymentTypeName($type);
$type = Utils::toSnakeCase($camelType); $type = Utils::toSnakeCase($camelType);
$variables["\${$camelType}Link"] = $invitation->getLink() . "/{$type}"; $variables["\${$camelType}Link"] = $invitation->getLink('payment') . "/{$type}";
$variables["\${$camelType}Button"] = HTML::emailPaymentButton($invitation->getLink('payment') . "/{$type}"); $variables["\${$camelType}Button"] = HTML::emailPaymentButton($invitation->getLink('payment') . "/{$type}");
} }