Commit 38e22b744d60c3324fd1e6eb04de89ddc46e5dba

Authored by Neil Blakey-Milner
1 parent ea1735dc

Remove commented-out code.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3057 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/discussions/viewDiscussionBL.php
... ... @@ -52,37 +52,6 @@ if (checkSession()) {
52 52 if (count($aDocumentThreads) > 0) {
53 53 // call the ui function to display the comments
54 54 $oPatternCustom->setHtml(getPage($fDocumentID, $aDocumentThreads));
55   -
56   -// $sQuery = "SELECT 1 as ForView, dc.subject AS subject, username, date, dc.id AS commentID, dt.document_id AS documentID " .
57   -// "FROM discussion_comments AS dc " .
58   -// "INNER JOIN users AS u ON dc.user_id = u.id " .
59   -// "INNER JOIN discussion_threads AS dt ON dt.id = dc.thread_id " .
60   -// "WHERE dt.id in ( " . implode(",", $aDocumentThreads) . ") " .
61   -// "ORDER BY dc.thread_id, dc.id, date ASC";
62   -//
63   -// $aColumns = array("subject", "username", "date");
64   -// $aColumnNames = array("<font color=white>Subject </font>", "<font color=white>User</font>", "<font color=white>Date</font>");
65   -// $aColumnTypes = array(3,1,1);
66   -// $aQueryStringVars = array("fViewComment", "iCommentID", "iDocumentID");
67   -// $aQueryStringCols = array("ForView", "commentID", "documentID");
68   -//
69   -// for ($i = 0; $i < $iNumMax; $i++) {
70   -// $aHyperLinkURL[$i] = $_SERVER['PHP_SELF'] ;
71   -// }
72   -//
73   -// $oSearchResults = & new PatternTableSqlQuery ($sQuery, $aColumns, $aColumnTypes, $aColumnNames, "100%", $aHyperLinkURL, $aQueryStringCols, $aQueryStringVars);
74   -// $sToRender .= renderHeading(_("Document Discussion Thread"));
75   -// $sToRender .= displayDocumentPath($fDocumentID);
76   -// $oPatternCustom->addHtml($sToRender);
77   -// $oPatternCustom->addHtml(getPageButtons($fDocumentID));
78   -// $oPatternCustom->addHtml($oSearchResults->render());
79   -//
80   - // On opening, increment the number of views of current thread & update database
81   -// if($_SESSION['Discussion' . $fDocumentID][0]->bViews !=true ){
82   -// $oThread->incrementNumberOfViews();
83   -// if($oThread->Update() == false) $oPatternCustom->addHtml("Failed to update. Please Contact Database Administrator in this regard") ;
84   -// $_SESSION['Discussion' . $fDocumentID][0]->bViews = true;
85   -// }
86 55 } else { // No current thread, option to create one
87 56 $main->setErrorMessage(_("No discussion thread is currently available"));
88 57 $oPatternCustom->addHtml(getNewThreadOption($fDocumentID));
... ...