diff options
author | ivan <ivan> | 2011-10-30 23:28:16 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-10-30 23:28:16 +0000 |
commit | 6e8323cf946ef3684a6846aa6afde7fe3692994e (patch) | |
tree | 629678e95d0b8dd40f9c790a8caed9a90341b3dc /FS/FS/msg_template.pm | |
parent | 2543cd5e16887a7976649e8f23818b64f397d2a6 (diff) |
selfservice password reset, RT#13656
Diffstat (limited to 'FS/FS/msg_template.pm')
-rw-r--r-- | FS/FS/msg_template.pm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/FS/FS/msg_template.pm b/FS/FS/msg_template.pm index d980ab9..50efcdb 100644 --- a/FS/FS/msg_template.pm +++ b/FS/FS/msg_template.pm @@ -262,6 +262,10 @@ The I<from_addr> field in the template takes precedence over this. Destination address. The default is to use the customer's invoicing_list addresses. Multiple addresses may be comma-separated. +=item substitutions + +A hash reference of additional substitutions + =back =cut @@ -324,8 +328,12 @@ sub prepare { } } } - $_ = encode_entities($_ || '') foreach values(%hash); + if ( $opt{substitutions} ) { + $hash{$_} = $opt{substitutions}->{$_} foreach keys %{$opt{substitutions}}; + } + + $_ = encode_entities($_ || '') foreach values(%hash); ### # clean up template |