Alexander Nicolaysen Sørnes : comment: Add <a name> tag in threaded mode

Chris Morgan cmorgan at winehq.org
Sun Jan 20 15:11:15 CST 2008


Module: appdb
Branch: master
Commit: 4297db978608c7adaee1273a70260a5ae93934aa
URL:    http://source.winehq.org/git/appdb.git/?a=commit;h=4297db978608c7adaee1273a70260a5ae93934aa

Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date:   Sun Jan 20 17:44:48 2008 +0100

comment: Add <a name> tag in threaded mode

---

 include/comment.php |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/include/comment.php b/include/comment.php
index c521ee5..13aeefe 100644
--- a/include/comment.php
+++ b/include/comment.php
@@ -359,10 +359,12 @@ class Comment {
                 Comment::view_app_comment($oRow);
             } else
             {
-                echo '<li><a href="commentview.php?iAppId='.$oRow->appId.'&amp;iVersionId='.$oRow->versionId.'&iThreadId='.$oRow->parentId.'"> '.
-                    $oRow->subject.' </a> by '.forum_lookup_user($oRow->userId).' on '.$oRow->time.' </li>'."\n";
+                echo "<li><a href=\"commentview.php?iAppId={$oRow->appId}&amp;iVersionId=".
+                     "{$oRow->versionId}&iThreadId={$oRow->parentId}\" ".
+                     "name=\"Comment-{$oRow->commentId}\"> ".
+                     $oRow->subject.' </a> by '.forum_lookup_user($oRow->userId).' on '.$oRow->time.' </li>'."\n";
             }
-        
+
             $hResult2 = Comment::grab_comments($oRow->versionId, $oRow->commentId);
             if ($hResult2 && query_num_rows($hResult2))
             {




More information about the wine-cvs mailing list