diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/is.pl | 2 | ||||
-rw-r--r-- | bin/pw.pl | 5 |
2 files changed, 4 insertions, 3 deletions
@@ -219,7 +219,7 @@ qq|<option value="$_->{description}--$_->{id}">$_->{description}\n|; $form->{paidaccounts} = 1 unless ( exists $form->{paidaccounts} ); $form->{AR} = $form->{AR_1} unless $form->{id}; - + $form->{transdate} = $form->{current_date} if (!$form->{transdate}); $form->{locked} = ( $form->{revtrans} ) ? '1' @@ -50,14 +50,15 @@ sub getpassword { $attr->{value} = $form->{$_}; push @{$form->{hidden}}, $attr; } - my $template = Template->new( + my $template = LedgerSMB::Template->new( user => \%myconfig, locale => $locale, path => 'UI', - template => 'get_password.html', + template => 'get_password', format => 'HTML' ); $template->render($form); + $template->output('http'); exit; } |