Commit b49ec3a9b4fca617fc01537440327f0138ae118e
1 parent
96401a21
Merged in from STABLE trunk...
KTC-212 "The pdf-Adobe icon does not appear in IE (6 & 7)" Fixed. Added full url to appease IE. Committed By: Kevin Fourie Reviewed By: Megan Watson git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/STABLE/branches/3.5.3-Release-Branch@8957 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
6 additions
and
1 deletions
plugins/ktstandard/PDFGeneratorAction.php
| ... | ... | @@ -71,7 +71,12 @@ class PDFGeneratorAction extends KTDocumentAction { |
| 71 | 71 | // make sure that the selected document is of an acceptable extension |
| 72 | 72 | foreach($this->aAcceptedMimeTypes as $acceptType){ |
| 73 | 73 | if($acceptType == $sDocType){ |
| 74 | - return _kt('Generate PDF') . " <a href=\"" . KTUtil::ktLink( 'action.php', 'ktstandard.pdf.generate', array( "fDocumentId" => $this->oDocument->getId(), "action" => "pdfdownload") ) . "\" <img src='resources/mimetypes/pdf.png' alt='PDF' border=0/></a>"; | |
| 74 | + // built server path | |
| 75 | + global $default; | |
| 76 | + $sHostPath = "http" . ($default->sslEnabled ? "s" : "") . "://".$_SERVER['HTTP_HOST']."/".$GLOBALS['KTRootUrl']."/"; | |
| 77 | + // create image | |
| 78 | + $icon = "<img src='".$sHostPath."resources/mimetypes/pdf.png' alt='PDF' border=0/>"; | |
| 79 | + return _kt('Generate PDF') . " <a href=\"" . KTUtil::ktLink( 'action.php', 'ktstandard.pdf.generate', array( "fDocumentId" => $this->oDocument->getId(), "action" => "pdfdownload") ) . "\" $icon</a>"; | |
| 75 | 80 | } |
| 76 | 81 | } |
| 77 | 82 | } | ... | ... |