git-svn-id: http://xe-core.googlecode.com/svn/trunk@110 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-02-15 14:57:47 +00:00
parent 6a3dd1cf28
commit 4db7dc54f9

View file

@ -60,11 +60,11 @@
$page = Context::get('page');
// document 객체를 생성. 기본 데이터 구조의 경우 document모듈만 쓰면 만사 해결.. -_-;
$oDocument = getModule('document');
$oDocumentModel = getModel('document');
// document_srl이 있다면 해당 글을 구해오자
if($this->grant->view && $document_srl) {
$document = $oDocument->getDocument($document_srl);
$document = $oDocumentModel->getDocument($document_srl);
// 글이 찾아지지 않으면 무효화
if(!$document) {
@ -85,8 +85,8 @@
// 댓글 가져오기
if($document->comment_count && $document->allow_comment == 'Y') {
$oComment = getModule('comment');
$comment_list = $oComment->getCommentList($document_srl);
$oCommentModel = getModel('comment');
$comment_list = $oCommentModel->getCommentList($document_srl);
Context::set('comment_list', $comment_list);
}