From 66c9114861885f75a29030682be83976cd93838b Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 11 Jun 2009 13:00:24 +0000 Subject: [PATCH] Beim Versenden von Emails mit PDFs aus OpenDocument den MIME-Typen und Dateinamen richtig setzen. --- SL/Form.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Form.pm b/SL/Form.pm index b112ea788..9a7c9e175 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -1194,7 +1194,7 @@ sub parse_template { if ($self->{"format"} =~ /(opendocument|oasis)/i) { $template = OpenDocumentTemplate->new($self->{"IN"}, $self, $myconfig, $userspath); - $ext_for_format = 'odt'; + $ext_for_format = $self->{"format"} =~ m/pdf/ ? 'pdf' : 'odt'; } elsif ($self->{"format"} =~ /(postscript|pdf)/i) { $ENV{"TEXINPUTS"} = ".:" . getcwd() . "/" . $myconfig->{"templates"} . ":" . $ENV{"TEXINPUTS"}; -- 2.20.1