mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 03:14:35 -04:00
Fix for trailing $ in default templates
This commit is contained in:
parent
bd5292f576
commit
e0c995a8b3
@ -223,6 +223,9 @@ class EmailTemplateDefaults
|
|||||||
|
|
||||||
private static function transformText($string)
|
private static function transformText($string)
|
||||||
{
|
{
|
||||||
|
//preformat the string, removing trailing colons.
|
||||||
|
$string = rtrim($string, ":");
|
||||||
|
|
||||||
return str_replace(':', '$', ctrans('texts.'.$string));
|
return str_replace(':', '$', ctrans('texts.'.$string));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user