projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1fc643
)
XML-Templates um Mimetypen fuer Winston und Taxbird erweitert
author
Udo Spallek
<info@wissensvermittlung.com>
Thu, 18 Jan 2007 16:25:20 +0000
(16:25 +0000)
committer
Udo Spallek
<info@wissensvermittlung.com>
Thu, 18 Jan 2007 16:25:20 +0000
(16:25 +0000)
SL/Template.pm
patch
|
blob
|
history
diff --git
a/SL/Template.pm
b/SL/Template.pm
index
9e25f39
..
c7257e9
100644
(file)
--- 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;
}