From aa1102e99b95c7ffc7bfb0078af520429595b702 Mon Sep 17 00:00:00 2001 From: Udo Spallek Date: Thu, 18 Jan 2007 16:25:20 +0000 Subject: [PATCH] XML-Templates um Mimetypen fuer Winston und Taxbird erweitert --- SL/Template.pm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/SL/Template.pm b/SL/Template.pm index 9e25f39ee..c7257e991 100644 --- a/SL/Template.pm +++ b/SL/Template.pm @@ -1307,16 +1307,17 @@ sub format_string { sub get_mime_type() { my ($self) = @_; - if ($self->{"form"}->{"format"} =~ /xml/i) { + if ($self->{"form"}->{"format"} =~ /elsterwinston/i) { return "application/xml "; + } elsif ($self->{"form"}->{"format"} =~ /elstertaxbird/i) { + return "application/x-taxbird"; } else { - return "text/xml"; + return "text"; } } sub uses_temp_file { -# my ($self) = @_; - # no tempfile needet for XML Output + # tempfile needet for XML Output return 1; } -- 2.20.1