Commit 449f30cf6ef6681fe83eded58910cdfe0b75951f

Authored by michael
1 parent c7117c7d

remove ie download hack

added   on no comment


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2160 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/documentmanagement/viewHistoryUI.inc
... ... @@ -52,24 +52,27 @@ function getDocumentHistory($iDocumentID) {
52 52 $i = 0;
53 53 while ($sql->next_record()) {
54 54 if ($sql->f("transaction_name") == "Check Out") {
55   - // IE ssl download hack- don't use ssl to download
56   - if ($default->phpSniff->property("browser") == "ie") {
57   - $sVersion = "<a href=\"http://" . $default->serverName . "$default->rootUrl/control.php?action=viewDocument&fDocumentID=$iDocumentID&fForDownload=1&fVersion=" . $sql->f("version") . "\">" . $sql->f("version") . "</a>";
58   - } else {
59   - $sVersion = generateControllerLink("viewDocument", "fDocumentID=$iDocumentID&fForDownload=1&fVersion=" . $sql->f("version"), "<strong>" . $sql->f("version") . "</strong>");
60   - }
  55 + $sVersion = generateControllerLink("viewDocument", "fDocumentID=$iDocumentID&fForDownload=1&fVersion=" . $sql->f("version"), "<strong>" . $sql->f("version") . "</strong>");
61 56 } else {
62 57 $sVersion = $sql->f("version");
63 58 }
64 59 $sToRender .= "<tr bgcolor=\"" . getColour($i++) . "\">\n";
65 60 $sToRender .= "<td>" . $sql->f("transaction_name") . "</td><td>" . $sql->f("user_name") . "</td><td>$sVersion</td>\n";
66   - $sToRender .= "<td>" . $sql->f("comment") . "</td><td>" . $sql->f("datetime") . "</td></tr>\n";
  61 + $sToRender .= "<td>" . displaySpace($sql->f("comment")) . "</td><td>" . $sql->f("datetime") . "</td></tr>\n";
67 62 }
68 63 $sToRender .= "</table>\n";
69 64 }
70 65 return $sToRender;
71 66 }
72 67  
  68 +function displaySpace($sHtml) {
  69 + if ($sHtml == "") {
  70 + return "&nbsp;";
  71 + } else {
  72 + return $sHtml;
  73 + }
  74 +}
  75 +
73 76 function getPage($iDocumentID, $iFolderID, $sDocumentName) {
74 77 global $default;
75 78 $sToRender = renderHeading("Document History");
... ...