diff options
author | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-10-02 14:45:23 +0000 |
---|---|---|
committer | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-10-02 14:45:23 +0000 |
commit | 1eec881f21499a178b07a77a7505e0ca94e56abd (patch) | |
tree | 626d43c7ca432d1e9bb779d75005c355a13d0a4e | |
parent | 1c3f614dab16e84815bb50fbc38a02f0fc1e1302 (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-x | LedgerSMB/Template/LaTeX.pm | 6 |
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"; } |