Add tag to comment id and link it to the notification email

This commit is contained in:
Tony Lambregts
2006-03-24 05:01:48 +00:00
committed by WineHQ
parent d20c6c6fee
commit f6beae01cf

View File

@@ -88,7 +88,7 @@ class Comment {
} }
$sSubject = "Comment for '".lookup_app_name($this->iAppId)." ".lookup_version_name($this->iVersionId)."' added by ".$_SESSION['current']->sRealname; $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 .= "\n";
$sMsg .= "Subject: ".$this->sSubject."\r\n"; $sMsg .= "Subject: ".$this->sSubject."\r\n";
$sMsg .= "\n"; $sMsg .= "\n";
@@ -214,7 +214,7 @@ function view_app_comment($ob)
$ob->body = stripslashes($ob->body); $ob->body = stripslashes($ob->body);
// message header // message header
echo "<tr bgcolor=\"#E0E0E0\"><td>\n"; echo "<tr bgcolor=\"#E0E0E0\"><td><a name=Comment-".$ob->commentId."></a>\n";
echo " <b>".$ob->subject."</b><br />\n"; echo " <b>".$ob->subject."</b><br />\n";
echo " by ".forum_lookup_user($ob->userId)." on ".$ob->time."<br />\n"; echo " by ".forum_lookup_user($ob->userId)." on ".$ob->time."<br />\n";
echo "</td></tr><tr><td>\n"; echo "</td></tr><tr><td>\n";
@@ -417,6 +417,9 @@ function view_app_comments($versionId, $threadId = 0)
else else
$mode = "threaded"; /* default non-logged in users to threaded comment display mode */ $mode = "threaded"; /* default non-logged in users to threaded comment display mode */
if ($_REQUEST['mode']=="nested")
$mode = "nested";
switch ($mode) switch ($mode)
{ {
case "flat": case "flat":