- show correct number of comment
- remove unused function
This commit is contained in:
@@ -263,19 +263,6 @@ function grab_comments($versionId, $parentId = -1)
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* grab comments for appId / versionId
|
||||
* if parentId is not -1 only comments for that thread are returned
|
||||
*/
|
||||
function count_comments($versionId)
|
||||
{
|
||||
$qstring = "SELECT count(commentId) as hits FROM appComments WHERE versionId = $versionId";
|
||||
$result = query_appdb($qstring);
|
||||
$ob = mysql_fetch_object($result);
|
||||
return $ob->hits;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* display nested comments
|
||||
* handle is a db result set
|
||||
@@ -295,6 +282,7 @@ function do_display_comments_nested($handle)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function display_comments_nested($versionId, $threadId)
|
||||
{
|
||||
$result = grab_comments($versionId, $threadId);
|
||||
|
||||
Reference in New Issue
Block a user