1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-05 18:52:44 +01:00

Fix for trailing $ in default templates

This commit is contained in:
David Bomba 2021-01-13 07:40:49 +11:00
parent bd5292f576
commit e0c995a8b3

View File

@ -223,6 +223,9 @@ class EmailTemplateDefaults
private static function transformText($string)
{
//preformat the string, removing trailing colons.
$string = rtrim($string, ":");
return str_replace(':', '$', ctrans('texts.'.$string));
}
}