Commit 3fea23f63a4e6482399b2a03ccd516a7ad1a9ab1
1 parent
7fb9d64e
updated to use controller link generation function
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@919 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
2 additions
and
3 deletions
presentation/lookAndFeel/knowledgeTree/documentmanagement/emailBL.php
| ... | ... | @@ -39,12 +39,11 @@ if (checkSession()) { |
| 39 | 39 | } else { |
| 40 | 40 | $sMessage = "Your colleague, " . $oUser->getName() . ", wishes you to view the document entitled '" . $oDocument->getName() . "'.\n Click on the hyperlink below to view it"; |
| 41 | 41 | } |
| 42 | - $sLink = "https://" . $_SERVER["SERVER_NAME"] . $default->owl_root_url . "/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewBL.php?fDocumentID=" . $fDocumentID; | |
| 42 | + $sHyperLink = generateLink("/presentation/lookAndFeel/knowledgeTree/documentmanagement/viewBL.php", "fDocumentID=$fDocumentID", $oDocument->getName()); | |
| 43 | 43 | |
| 44 | - $sHyperlink = "<a href = " . $sLink .">" . $oDocument->getName() . "</a>"; | |
| 45 | 44 | //email the hyperlink |
| 46 | 45 | $oEmail = new Email(); |
| 47 | - $oEmail->sendHyperlink($default->owl_email_from, "MRC DMS", $fToEmail, "Document link", $sMessage, $sHyperlink); | |
| 46 | + $oEmail->sendHyperlink($default->owl_email_from, "MRC DMS", $fToEmail, "Document link", $sMessage, $sHyperLink); | |
| 48 | 47 | //go back to the document view page |
| 49 | 48 | redirect("$default->owl_root_url/control.php?action=viewDocument&fDocumentID=$fDocumentID"); |
| 50 | 49 | } else { | ... | ... |