Commit 34a48a90e074c4e45b43eaa3594a5b7e2cf7e67d
1 parent
dfed508d
Added server name to hyperlink
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@724 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
1 additions
and
1 deletions
presentation/lookAndFeel/knowledgeTree/documentmanagement/emailBL.php
| @@ -39,7 +39,7 @@ if (checkSession()) { | @@ -39,7 +39,7 @@ if (checkSession()) { | ||
| 39 | } else { | 39 | } else { |
| 40 | $sMessage = "Your colleauge, " . $oUser->getName() . ", wishes you to view the document entitled '" . $oDocument->getName() . "'.\n Click on the hyperlink below to view it"; | 40 | $sMessage = "Your colleauge, " . $oUser->getName() . ", wishes you to view the document entitled '" . $oDocument->getName() . "'.\n Click on the hyperlink below to view it"; |
| 41 | } | 41 | } |
| 42 | - $sHyperlink = "<a href=\"$default->owl_root_url/control.php?action=viewDocument&fDocumentID=" . $fDocumentID\ . "\" />"; | 42 | + $sHyperlink = "<a href=\"" . $_SERVER["SERVER_NAME"] . "$default->owl_root_url/control.php?action=viewDocument&fDocumentID=" . $fDocumentID\ . "\" />"; |
| 43 | //email the hyperlink | 43 | //email the hyperlink |
| 44 | Email::sendHyperlink($default->owl_email_from, "MRC DMS", $fToEmail, "Document link", $sMessage, $sHyperlink); | 44 | Email::sendHyperlink($default->owl_email_from, "MRC DMS", $fToEmail, "Document link", $sMessage, $sHyperlink); |
| 45 | //go back to the document view page | 45 | //go back to the document view page |