Merge pull request #1584 from YJSoft/bugfix/votecount

#1580 댓글 추천/비추천시에도 변경된 추천수를 반환하도록 수정
This commit is contained in:
bnu 2015-07-06 17:48:19 +09:00
commit 740ad27bb3

View file

@ -54,7 +54,9 @@ class commentController extends comment
}
$point = 1;
return $this->updateVotedCount($comment_srl, $point);
$output = $this->updateVotedCount($comment_srl, $point);
$this->add('voted_count', $output->get('voted_count'));
return $output;
}
/**
@ -90,7 +92,9 @@ class commentController extends comment
}
$point = -1;
return $this->updateVotedCount($comment_srl, $point);
$output = $this->updateVotedCount($comment_srl, $point);
$this->add('blamed_count', $output->get('blamed_count'));
return $output;
}
/**