Switch a few more variables over to the new naming scheme, fix deleting comments and replying to comments

This commit is contained in:
Chris Morgan
2006-07-06 23:49:51 +00:00
committed by WineHQ
parent 4152e763d5
commit 445fbdfdd3

View File

@@ -238,7 +238,7 @@ function view_app_comment($oRow)
// reply post buttons // reply post buttons
echo " [<a href=\"addcomment.php?iAppId=$oRow->appId&amp;iVersionId=$oRow->versionId\"><small>post new</small></a>] \n"; echo " [<a href=\"addcomment.php?iAppId=$oRow->appId&amp;iVersionId=$oRow->versionId\"><small>post new</small></a>] \n";
echo " [<a href=\"addcomment.php?iAppId=$oRow->appId&amp;iVersionId=$oRow->versionId&amp;sSubject=". echo " [<a href=\"addcomment.php?iAppId=$oRow->appId&amp;iVersionId=$oRow->versionId&amp;sSubject=".
urlencode("$subject")."&amp;thread=$oRow->commentId\"><small>reply to this</small></a>] \n"; urlencode("$subject")."&amp;iThread=$oRow->commentId\"><small>reply to this</small></a>] \n";
echo "</td></tr>\n"; echo "</td></tr>\n";
@@ -248,8 +248,8 @@ function view_app_comment($oRow)
|| $_SESSION['current']->isSuperMaintainer($oRow->appId)) || $_SESSION['current']->isSuperMaintainer($oRow->appId))
{ {
echo "<tr>"; echo "<tr>";
echo "<td><form method=\"post\" name=\"message\" action=\"".BASE."deletecomment.php\"><input type=\"submit\" value=\"Delete\" class=\"button\">\n"; echo "<td><form method=\"post\" name=\"sMessage\" action=\"".BASE."deletecomment.php\"><input type=\"submit\" value=\"Delete\" class=\"button\">\n";
echo "<input type=\"hidden\" name=\"commentId\" value=\"$oRow->commentId\" />"; echo "<input type=\"hidden\" name=\"iCommentId\" value=\"$oRow->commentId\" />";
echo "</form>\n"; echo "</form>\n";
echo "</td></tr>"; echo "</td></tr>";
} }
@@ -329,7 +329,7 @@ function do_display_comments_threaded($hResult, $is_main)
view_app_comment($oRow); view_app_comment($oRow);
} else } else
{ {
echo '<li><a href="commentview.php?iAppId='.$oRow->appId.'&amp;iVersionId='.$oRow->versionId.'&threadId='.$oRow->parentId.'"> '. 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"; $oRow->subject.' </a> by '.forum_lookup_user($oRow->userId).' on '.$oRow->time.' </li>'."\n";
} }