@@ -483,16 +483,22 @@ function comment_reply($nid, $pid = NULL) {
}
else{
drupal_set_message(t('You are not authorized to post comments.'),'error');
drupal_goto("node/$nid");
}
}
else{
// if this is a reply to another comment, show that comment first
// else, we'll just show the user the node they're commenting on.
if($pid){
$comment=db_fetch_object(db_query('SELECT c.*, u.uid, u.name AS registered_name, u.picture, u.data FROM {comments} c INNER JOIN {users} u ON c.uid = u.uid WHERE c.cid = %d AND c.status = %d',$pid,COMMENT_PUBLISHED));
if($comment=db_fetch_object(db_query('SELECT c.*, u.uid, u.name AS registered_name, u.picture, u.data FROM {comments} c INNER JOIN {users} u ON c.uid = u.uid WHERE c.cid = %d AND c.status = %d',$pid,COMMENT_PUBLISHED))){
@@ -483,16 +483,22 @@ function comment_reply($nid, $pid = NULL) {
}
else{
drupal_set_message(t('You are not authorized to post comments.'),'error');
drupal_goto("node/$nid");
}
}
else{
// if this is a reply to another comment, show that comment first
// else, we'll just show the user the node they're commenting on.
if($pid){
$comment=db_fetch_object(db_query('SELECT c.*, u.uid, u.name AS registered_name, u.picture, u.data FROM {comments} c INNER JOIN {users} u ON c.uid = u.uid WHERE c.cid = %d AND c.status = %d',$pid,COMMENT_PUBLISHED));
if($comment=db_fetch_object(db_query('SELECT c.*, u.uid, u.name AS registered_name, u.picture, u.data FROM {comments} c INNER JOIN {users} u ON c.uid = u.uid WHERE c.cid = %d AND c.status = %d',$pid,COMMENT_PUBLISHED))){