게시글의 고유번호로 접속시 자동으로 페이지 찾는 부분 수정하여 정상동작하도록 변경

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3019 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-11-20 03:50:37 +00:00
parent e774cde915
commit 167569a47f
2 changed files with 3 additions and 3 deletions

View file

@ -128,7 +128,7 @@
if(!$args->order_type) $args->order_type = $this->module_info->order_type?$this->module_info->order_type:'asc';
// 만약 document_srl은 있는데 page가 없다면 글만 호출된 경우 page를 구해서 세팅해주자..
if($document_srl && ($oDocument->isExists()&&!$oDocument->isNotice()) && !$args->category_srl && !$args->search_keyword && $args->sort_index == 'list_order' && $args->order_type == 'asc') {
if($document_srl && ($oDocument->isExists()&&!$oDocument->isNotice()) && !$args->category_srl && !$args->search_keyword && $args->sort_index == 'newest' && $args->order_type == 'asc') {
$page = $oDocumentModel->getDocumentPage($document_srl, $this->module_srl, $this->list_count);
Context::set('page', $page);
$args->page = $page;