From: Udo Spallek Date: Thu, 18 Jan 2007 16:25:20 +0000 (+0000) Subject: XML-Templates um Mimetypen fuer Winston und Taxbird erweitert X-Git-Tag: release-2.4.1~1^2~19 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=aa1102e99b95c7ffc7bfb0078af520429595b702;p=kivitendo-erp.git XML-Templates um Mimetypen fuer Winston und Taxbird erweitert --- 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; }