From 783cf8ccda68d1a350c6581e97a6d5ea2ef545d5 Mon Sep 17 00:00:00 2001 From: Lansi Date: Sat, 10 May 2014 01:01:11 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B6=94=EC=B2=9C=EC=88=98=20=EB=B0=8F=20?= =?UTF-8?q?=EB=B9=84=EC=B6=94=EC=B2=9C=EC=88=98=20=EB=A6=AC=ED=84=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/comment/comment.controller.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/modules/comment/comment.controller.php b/modules/comment/comment.controller.php index 3ff6b2229..9bba0f8fd 100644 --- a/modules/comment/comment.controller.php +++ b/modules/comment/comment.controller.php @@ -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; } /**