From: Holger Lindemann Date: Tue, 29 Sep 2009 10:53:34 +0000 (+0200) Subject: Merge branch 'master' of ssh://lx-office/~/lx-office-erp X-Git-Tag: release-2.6.1beta1~275 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/commitdiff_plain/1043d7f814fccf5864e677b1e38577d0a150026c?hp=5dbfdff95354c03547c217c291eff25039eca41d Merge branch 'master' of ssh://lx-office/~/lx-office-erp --- diff --git a/SL/Template.pm b/SL/Template.pm index 3ec7cd138..fe4b24893 100644 --- a/SL/Template.pm +++ b/SL/Template.pm @@ -501,7 +501,7 @@ sub _force_mandatory_packages { my (%used_packages, $document_start_line); foreach my $i (0 .. scalar @{ $lines } - 1) { - if ($lines->[$i] =~ m/\\usepackage[^{]*{(.*?)}/) { + if ($lines->[$i] =~ m/\\usepackage[^\{]*{(.*?)}/) { $used_packages{$1} = 1; } elsif ($lines->[$i] =~ m/\\begin{document}/) { diff --git a/bin/mozilla/common.pl b/bin/mozilla/common.pl index 6ace578f2..c8d7d6bb2 100644 --- a/bin/mozilla/common.pl +++ b/bin/mozilla/common.pl @@ -364,6 +364,13 @@ sub format_dates { $dateformat, $longformat); } } + if (ref($form->{TEMPLATE_ARRAYS}->{$idx}) eq "ARRAY") { + for (my $i = 0; $i < scalar(@{$form->{TEMPLATE_ARRAYS}->{$idx}}); $i++) { + $form->{TEMPLATE_ARRAYS}->{$idx}->[$i] = + $locale->reformat_date(\%myconfig, $form->{TEMPLATE_ARRAYS}->{$idx}->[$i], + $dateformat, $longformat); + } + } } $lxdebug->leave_sub();