From b8256b910c53311513259c8912e73e3f1ced15c2 Mon Sep 17 00:00:00 2001 From: nbm Date: Mon, 17 Jan 2005 12:58:49 +0000 Subject: [PATCH] Consistently use form variables prefixed with 'f' for passing values. --- presentation/lookAndFeel/knowledgeTree/discussions/addCommentUI.inc | 4 ++-- presentation/lookAndFeel/knowledgeTree/discussions/viewCommentBL.php | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/presentation/lookAndFeel/knowledgeTree/discussions/addCommentUI.inc b/presentation/lookAndFeel/knowledgeTree/discussions/addCommentUI.inc index 090f32d..1885cf5 100644 --- a/presentation/lookAndFeel/knowledgeTree/discussions/addCommentUI.inc +++ b/presentation/lookAndFeel/knowledgeTree/discussions/addCommentUI.inc @@ -58,11 +58,11 @@ function getAddComment($iDocumentID, $sSubject, $sBody, $iCommentID, $iNewCommen $sToRender .= ""; if ($iNewComment>0) { // If user is creating a new comment $sToRender .= "\n"; - $sToRender .= ""; + $sToRender .= ""; } else { // If the user is replying to a comment $sToRender .= ""; $sToRender .= ""; - $sToRender .= "\n"; + $sToRender .= "\n"; } $sToRender .= "
Subject\n"; $sToRender .= "\n"; diff --git a/presentation/lookAndFeel/knowledgeTree/discussions/viewCommentBL.php b/presentation/lookAndFeel/knowledgeTree/discussions/viewCommentBL.php index 144453a..f749e0e 100644 --- a/presentation/lookAndFeel/knowledgeTree/discussions/viewCommentBL.php +++ b/presentation/lookAndFeel/knowledgeTree/discussions/viewCommentBL.php @@ -35,17 +35,19 @@ require_once("$default->fileSystemRoot/lib/discussions/DiscussionThread.inc"); require_once("$default->fileSystemRoot/lib/discussions/DiscussionComment.inc"); require_once("$default->fileSystemRoot/presentation/lookAndFeel/knowledgeTree/documentmanagement/documentUI.inc"); require_once("$default->fileSystemRoot/presentation/Html.inc"); + +KTUtil::extractGPC('fCommentID', 'fDocumentID', 'fThreadID'); if (checkSession()) { require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); $oPatternCustom = & new PatternCustom(); // validate input parameters - if (isset($iCommentID) && isset($iDocumentID)) { - $oComment = DiscussionComment::get($iCommentID); + if (isset($fCommentID) && isset($fDocumentID)) { + $oComment = DiscussionComment::get($fCommentID); $oUser = User::get($oComment->getUserID()); $main->setFormAction("$default->rootUrl/presentation/lookAndFeel/knowledgeTree/discussions/addCommentBL.php?fDocumentID=$iDocumentID&fCommentID=$iCommentID&fReplyComment=1"); - $oPatternCustom->setHtml(getCommentBody($oComment,$iDocumentID,$oUser,$iThreadID)); + $oPatternCustom->setHtml(getCommentBody($oComment,$fDocumentID,$oUser,$fThreadID)); } else { $main->setErrorMessage(_("You didn't specify a comment to view")); } -- libgit2 0.21.4