mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 04:52:14 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@110 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6a3dd1cf28
commit
4db7dc54f9
1 changed files with 4 additions and 4 deletions
|
|
@ -60,11 +60,11 @@
|
||||||
$page = Context::get('page');
|
$page = Context::get('page');
|
||||||
|
|
||||||
// document 객체를 생성. 기본 데이터 구조의 경우 document모듈만 쓰면 만사 해결.. -_-;
|
// document 객체를 생성. 기본 데이터 구조의 경우 document모듈만 쓰면 만사 해결.. -_-;
|
||||||
$oDocument = getModule('document');
|
$oDocumentModel = getModel('document');
|
||||||
|
|
||||||
// document_srl이 있다면 해당 글을 구해오자
|
// document_srl이 있다면 해당 글을 구해오자
|
||||||
if($this->grant->view && $document_srl) {
|
if($this->grant->view && $document_srl) {
|
||||||
$document = $oDocument->getDocument($document_srl);
|
$document = $oDocumentModel->getDocument($document_srl);
|
||||||
|
|
||||||
// 글이 찾아지지 않으면 무효화
|
// 글이 찾아지지 않으면 무효화
|
||||||
if(!$document) {
|
if(!$document) {
|
||||||
|
|
@ -85,8 +85,8 @@
|
||||||
|
|
||||||
// 댓글 가져오기
|
// 댓글 가져오기
|
||||||
if($document->comment_count && $document->allow_comment == 'Y') {
|
if($document->comment_count && $document->allow_comment == 'Y') {
|
||||||
$oComment = getModule('comment');
|
$oCommentModel = getModel('comment');
|
||||||
$comment_list = $oComment->getCommentList($document_srl);
|
$comment_list = $oCommentModel->getCommentList($document_srl);
|
||||||
Context::set('comment_list', $comment_list);
|
Context::set('comment_list', $comment_list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue