/modules/comment/comment.controller.php
updateVotedCount() 수정
이것을
1
2
3
4
5
6
7
8
9
10
11
|
// update the number of votes if ( $point < 0) { $args ->blamed_count = $oComment ->get( 'blamed_count' ) + $point ; $output = executeQuery( 'comment.updateBlamedCount' , $args ); } else { $args ->voted_count = $oComment ->get( 'voted_count' ) + $point ; $output = executeQuery( 'comment.updateVotedCount' , $args ); 요걸로 ↓
|
1
2
3
4
5
6
7
8
9
10
11
12
|
if ( $point < 0) { $args ->blamed_count = $oComment ->get( 'blamed_count' ) + $point ; $output = executeQuery( 'comment.updateBlamedCount' , $args ); $success_message = sprintf( '비추천 되었습니다. 현재 비추천수는 %d 입니다.' , $args ->blamed_count); } else { $args ->voted_count = $oComment ->get( 'voted_count' ) + $point ; $output = executeQuery( 'comment.updateVotedCount' , $args ); $success_message = sprintf( '추천 되었습니다. 현재 추천수는 %d 입니다.' , $args ->voted_count); } |
이것을
1
2
|
// Return the result return new Object(0, $success_message ); 아래로↓
|
1
|
return new Object(-1, $success_message ); |