|
@@ 228-237 (lines=10) @@
|
| 225 |
|
if($parent_srl === false) continue; |
| 226 |
|
|
| 227 |
|
$obj->comment_count++; |
| 228 |
|
if($val->comment) |
| 229 |
|
{ |
| 230 |
|
$child_comment = $val->comment; |
| 231 |
|
if(!is_array($child_comment)) $child_comment = array($child_comment); |
| 232 |
|
foreach($child_comment as $k => $v) |
| 233 |
|
{ |
| 234 |
|
$result = $this->insertComment($v, $module_srl, $obj->document_srl, $member_info, $parent_srl, $author_xml_id); |
| 235 |
|
if($result !== false) $obj->comment_count++; |
| 236 |
|
} |
| 237 |
|
} |
| 238 |
|
} |
| 239 |
|
} |
| 240 |
|
|
|
@@ 364-373 (lines=10) @@
|
| 361 |
|
$obj->trackback_count = 0; |
| 362 |
|
|
| 363 |
|
$obj->comment_count = 0; |
| 364 |
|
if($val->comment) |
| 365 |
|
{ |
| 366 |
|
$child_comment = $val->comment; |
| 367 |
|
if(!is_array($child_comment)) $child_comment = array($child_comment); |
| 368 |
|
foreach($child_comment as $k => $v) |
| 369 |
|
{ |
| 370 |
|
$result = $this->insertComment($v, $module_srl, $obj->document_srl, $member_info, 0,$author_xml_id); |
| 371 |
|
if($result !== false) $obj->comment_count++; |
| 372 |
|
} |
| 373 |
|
} |
| 374 |
|
|
| 375 |
|
// Document |
| 376 |
|
$output = executeQuery('document.insertDocument', $obj); |