appdb/include comment.php

WineHQ wineowner at wine.codeweavers.com
Thu Jul 6 18:49:51 CDT 2006


ChangeSet ID:	26256
CVSROOT:	/opt/cvs-commit
Module name:	appdb
Changes by:	wineowner at winehq.org	2006/07/06 18:49:51

Modified files:
	include        : comment.php 

Log message:
	Chris Morgan <cmorgan at 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&amp;iVersionId=$oRow->versionId\"><small>post new</small></a>] \n";
     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";
 
@@ -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.'&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";
         }
         



More information about the wine-cvs mailing list