From b49ec3a9b4fca617fc01537440327f0138ae118e Mon Sep 17 00:00:00 2001 From: kevin_fourie Date: Sun, 3 Aug 2008 16:21:40 +0000 Subject: [PATCH] Merged in from STABLE trunk... --- plugins/ktstandard/PDFGeneratorAction.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/ktstandard/PDFGeneratorAction.php b/plugins/ktstandard/PDFGeneratorAction.php index 451c60f..eae45c2 100644 --- a/plugins/ktstandard/PDFGeneratorAction.php +++ b/plugins/ktstandard/PDFGeneratorAction.php @@ -71,7 +71,12 @@ class PDFGeneratorAction extends KTDocumentAction { // make sure that the selected document is of an acceptable extension foreach($this->aAcceptedMimeTypes as $acceptType){ if($acceptType == $sDocType){ - return _kt('Generate PDF') . "  $this->oDocument->getId(), "action" => "pdfdownload") ) . "\" PDF"; + // built server path + global $default; + $sHostPath = "http" . ($default->sslEnabled ? "s" : "") . "://".$_SERVER['HTTP_HOST']."/".$GLOBALS['KTRootUrl']."/"; + // create image + $icon = "PDF"; + return _kt('Generate PDF') . "  $this->oDocument->getId(), "action" => "pdfdownload") ) . "\" $icon"; } } } -- libgit2 0.21.4