diff --git a/include/comment.php b/include/comment.php index e57be46..9463b96 100644 --- a/include/comment.php +++ b/include/comment.php @@ -88,7 +88,7 @@ class Comment { } $sSubject = "Comment for '".lookup_app_name($this->iAppId)." ".lookup_version_name($this->iVersionId)."' added by ".$_SESSION['current']->sRealname; - $sMsg = APPDB_ROOT."appview.php?versionId=".$this->iVersionId."\n"; + $sMsg = APPDB_ROOT."appview.php?versionId=".$this->iVersionId."&mode=nested#Comment-".$this->iCommentId."\n"; $sMsg .= "\n"; $sMsg .= "Subject: ".$this->sSubject."\r\n"; $sMsg .= "\n"; @@ -214,7 +214,7 @@ function view_app_comment($ob) $ob->body = stripslashes($ob->body); // message header - echo "\n"; + echo "commentId.">\n"; echo " ".$ob->subject."
\n"; echo " by ".forum_lookup_user($ob->userId)." on ".$ob->time."
\n"; echo "\n"; @@ -417,6 +417,9 @@ function view_app_comments($versionId, $threadId = 0) else $mode = "threaded"; /* default non-logged in users to threaded comment display mode */ + if ($_REQUEST['mode']=="nested") + $mode = "nested"; + switch ($mode) { case "flat":