From 02129bcf32219a444fe2e1d31c3e58b939359600 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 12 Dec 2006 14:31:34 +0000 Subject: [PATCH] =?utf8?q?$myconfig=20ist=20in=20$self=20gespeichert.=20Fi?= =?utf8?q?x=20f=C3=BCr=20Bugzilla=20#439.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Template.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SL/Template.pm b/SL/Template.pm index d30b92886..b4c6bf509 100644 --- a/SL/Template.pm +++ b/SL/Template.pm @@ -196,7 +196,7 @@ sub parse_foreach { # replace the special variables <%sumcarriedforward%> # and <%lastpage%> - my $psum = $form->format_amount($myconfig, $sum, 2); + my $psum = $form->format_amount($self->{"myconfig"}, $sum, 2); $pb =~ s/<%sumcarriedforward%>/$psum/g; $pb =~ s/<%lastpage%>/$current_page/g; @@ -210,7 +210,8 @@ sub parse_foreach { $current_line += $lines; } if ($i < scalar(@{$form->{"linetotal"}})) { - $sum += $form->parse_amount($myconfig, $form->{"linetotal"}->[$i]); + $sum += $form->parse_amount($self->{"myconfig"}, + $form->{"linetotal"}->[$i]); } my $new_text = $self->parse_block($text, (@indices, $i)); -- 2.20.1