summaryrefslogtreecommitdiff
path: root/FS/FS/msg_template.pm
diff options
context:
space:
mode:
authorivan <ivan>2011-10-30 23:28:16 +0000
committerivan <ivan>2011-10-30 23:28:16 +0000
commit6e8323cf946ef3684a6846aa6afde7fe3692994e (patch)
tree629678e95d0b8dd40f9c790a8caed9a90341b3dc /FS/FS/msg_template.pm
parent2543cd5e16887a7976649e8f23818b64f397d2a6 (diff)
selfservice password reset, RT#13656
Diffstat (limited to 'FS/FS/msg_template.pm')
-rw-r--r--FS/FS/msg_template.pm10
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