appdb/include comment.php
WineHQ
wineowner at wine.codeweavers.com
Thu Mar 23 23:01:48 CST 2006
ChangeSet ID: 23747
CVSROOT: /opt/cvs-commit
Module name: appdb
Changes by: wineowner at winehq.org 2006/03/23 23:01:48
Modified files:
include : comment.php
Log message:
Tony Lambregts <tony.lambregts at gmail.com>
Add tag to comment id and link it to the notification email
Patch: http://cvs.winehq.org/patch.py?id=23747
Old revision New revision Changes Path
1.13 1.14 +5 -2 appdb/include/comment.php
Index: appdb/include/comment.php
diff -u -p appdb/include/comment.php:1.13 appdb/include/comment.php:1.14
--- appdb/include/comment.php:1.13 24 Mar 2006 5: 1:48 -0000
+++ appdb/include/comment.php 24 Mar 2006 5: 1:48 -0000
@@ -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 "<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 " by ".forum_lookup_user($ob->userId)." on ".$ob->time."<br />\n";
echo "</td></tr><tr><td>\n";
@@ -417,6 +417,9 @@ function view_app_comments($versionId, $
else
$mode = "threaded"; /* default non-logged in users to threaded comment display mode */
+ if ($_REQUEST['mode']=="nested")
+ $mode = "nested";
+
switch ($mode)
{
case "flat":
More information about the wine-cvs
mailing list