summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-10-02 14:45:23 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-10-02 14:45:23 +0000
commit1eec881f21499a178b07a77a7505e0ca94e56abd (patch)
tree626d43c7ca432d1e9bb779d75005c355a13d0a4e
parent1c3f614dab16e84815bb50fbc38a02f0fc1e1302 (diff)
Correcting Postscript mimetype
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1688 4979c152-3d1c-0410-bac9-87ea11338e46
-rwxr-xr-xLedgerSMB/Template/LaTeX.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/LedgerSMB/Template/LaTeX.pm b/LedgerSMB/Template/LaTeX.pm
index 77e2a2d4..06c4b8c4 100755
--- a/LedgerSMB/Template/LaTeX.pm
+++ b/LedgerSMB/Template/LaTeX.pm
@@ -118,10 +118,12 @@ sub process {
"$parent->{outputfile}.$format", binmode => 1)) {
throw Error::Simple $template->error();
}
- if ($format eq 'dvi') {
+ if (lc $format eq 'dvi') {
$parent->{mimetype} = 'application/x-dvi';
+ } elsif (lc $format eq 'pdf') {
+ $parent->{mimetype} = 'application/pdf';
} else {
- $parent->{mimetype} = 'application/$format';
+ $parent->{mimetype} = 'application/postscript';
}
$parent->{rendered} = "$parent->{outputfile}.$format";
}