@@ 1119-1128 (lines=10) @@ | ||
1116 | $oDB->begin(); |
|
1117 | ||
1118 | // update the number of votes |
|
1119 | if($trigger_obj->update_target === 'blamed_count') |
|
1120 | { |
|
1121 | $args->blamed_count = $trigger_obj->after_point; |
|
1122 | $output = executeQuery('comment.updateBlamedCount', $args); |
|
1123 | } |
|
1124 | else |
|
1125 | { |
|
1126 | $args->voted_count = $trigger_obj->after_point; |
|
1127 | $output = executeQuery('comment.updateVotedCount', $args); |
|
1128 | } |
|
1129 | ||
1130 | // leave logs |
|
1131 | $args->point = $trigger_obj->point; |
@@ 1143-1152 (lines=10) @@ | ||
1140 | $oDB->begin(); |
|
1141 | ||
1142 | // Update the voted count |
|
1143 | if($trigger_obj->update_target === 'blamed_count') |
|
1144 | { |
|
1145 | $args->blamed_count = $trigger_obj->after_point; |
|
1146 | $output = executeQuery('document.updateBlamedCount', $args); |
|
1147 | } |
|
1148 | else |
|
1149 | { |
|
1150 | $args->voted_count = $trigger_obj->after_point; |
|
1151 | $output = executeQuery('document.updateVotedCount', $args); |
|
1152 | } |
|
1153 | if(!$output->toBool()) return $output; |
|
1154 | ||
1155 | // Leave logs |