ChangeSet ID: 26256 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner@winehq.org 2006/07/06 18:49:51
Modified files: include : comment.php
Log message: Chris Morgan cmorgan@alum.wpi.edu Switch a few more variables over to the new naming scheme, fix deleting comments and replying to comments
Patch: http://cvs.winehq.org/patch.py?id=26256
Old revision New revision Changes Path 1.24 1.25 +4 -4 appdb/include/comment.php
Index: appdb/include/comment.php diff -u -p appdb/include/comment.php:1.24 appdb/include/comment.php:1.25 --- appdb/include/comment.php:1.24 6 Jul 2006 23:49:51 -0000 +++ appdb/include/comment.php 6 Jul 2006 23:49:51 -0000 @@ -238,7 +238,7 @@ function view_app_comment($oRow) // reply post buttons echo " [<a href="addcomment.php?iAppId=$oRow->appId&iVersionId=$oRow->versionId"><small>post new</small></a>] \n"; echo " [<a href="addcomment.php?iAppId=$oRow->appId&iVersionId=$oRow->versionId&sSubject=". - urlencode("$subject")."&thread=$oRow->commentId"><small>reply to this</small></a>] \n"; + urlencode("$subject")."&iThread=$oRow->commentId"><small>reply to this</small></a>] \n";
echo "</td></tr>\n";
@@ -248,8 +248,8 @@ function view_app_comment($oRow) || $_SESSION['current']->isSuperMaintainer($oRow->appId)) { echo "<tr>"; - echo "<td><form method="post" name="message" action="".BASE."deletecomment.php"><input type="submit" value="Delete" class="button">\n"; - echo "<input type="hidden" name="commentId" value="$oRow->commentId" />"; + echo "<td><form method="post" name="sMessage" action="".BASE."deletecomment.php"><input type="submit" value="Delete" class="button">\n"; + echo "<input type="hidden" name="iCommentId" value="$oRow->commentId" />"; echo "</form>\n"; echo "</td></tr>"; } @@ -329,7 +329,7 @@ function do_display_comments_threaded($h view_app_comment($oRow); } else { - echo '<li><a href="commentview.php?iAppId='.$oRow->appId.'&iVersionId='.$oRow->versionId.'&threadId='.$oRow->parentId.'"> '. + echo '<li><a href="commentview.php?iAppId='.$oRow->appId.'&iVersionId='.$oRow->versionId.'&iThreadId='.$oRow->parentId.'"> '. $oRow->subject.' </a> by '.forum_lookup_user($oRow->userId).' on '.$oRow->time.' </li>'."\n"; }