추천수 및 비추천수 리턴

This commit is contained in:
Lansi 2014-05-10 01:01:11 +09:00
parent 64906ca3cd
commit 783cf8ccda

View file

@ -1100,7 +1100,17 @@ class commentController extends comment
$_SESSION['voted_comment'][$comment_srl] = TRUE;
// Return the result
return new Object(0, $success_message);
$output = new Object(0, $success_message);
if($point > 0)
{
$output->add('voted_count', $obj->after_point);
}
else
{
$output->add('blamed_count', $obj->after_point);
}
return $output;
}
/**