summaryrefslogtreecommitdiff
path: root/LedgerSMB/Template/TXT.pm
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-06-22 19:04:24 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-06-22 19:04:24 +0000
commitbfa1a35ab8b449de5047bbbf7a85cbd0cc4e20a1 (patch)
tree25885edbe21b05839cacbe8b3249017c79736c23 /LedgerSMB/Template/TXT.pm
parenteb21ae5da75a6d71afa8edc894b85701553f0751 (diff)
Template handling adjustments
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1308 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB/Template/TXT.pm')
-rwxr-xr-xLedgerSMB/Template/TXT.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/LedgerSMB/Template/TXT.pm b/LedgerSMB/Template/TXT.pm
index 40d6edb5..a950335f 100755
--- a/LedgerSMB/Template/TXT.pm
+++ b/LedgerSMB/Template/TXT.pm
@@ -40,6 +40,7 @@ package LedgerSMB::Template::TXT;
use Error qw(:try);
use Template;
+use LedgerSMB::Template::TTI18N;
sub get_template {
my $name = shift;
@@ -65,7 +66,9 @@ sub process {
if (not $template->process(
get_template($parent->{template}),
- $cleanvars, "$parent->{outputfile}.txt", binmode => ':utf8')) {
+ {%$cleanvars, %$LedgerSMB::Template::TTI18N::ttfuncs,
+ 'escape' => \&preprocess},
+ "$parent->{outputfile}.txt", binmode => ':utf8')) {
throw Error::Simple $template->error();
}
$parent->{mimetype} = 'text/plain';