mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
댓글 목록을 구하는 method의 결과값을 commentItem 객체로 return 하도록 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6384 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
90a37a23d7
commit
dc2a8c76a5
2 changed files with 7 additions and 9 deletions
|
|
@ -49,14 +49,6 @@
|
|||
$oCommentModel = &getModel('comment');
|
||||
$output = $oCommentModel->getTotalCommentList($args);
|
||||
if(!$output->toBool()|| !$output->data) return $output;
|
||||
|
||||
$list = array();
|
||||
foreach($output->data as $key => $val) {
|
||||
$oComment = new commentItem(0);
|
||||
$oComment->setAttribute($val);
|
||||
$list[$key] = $oComment;
|
||||
}
|
||||
$output->data = $list;
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue