From 4ebfa15e681a89e8ed2606e26fce5ee252809b8f Mon Sep 17 00:00:00 2001 From: bnu Date: Tue, 17 Dec 2013 19:21:33 +0900 Subject: [PATCH] =?UTF-8?q?NOISSUE=20trackback=20=EB=AA=A8=EB=93=88?= =?UTF-8?q?=EC=9D=B4=20=EC=97=86=EC=9D=84=20=EB=95=8C=20=ED=86=B5=ED=95=A9?= =?UTF-8?q?=20=EA=B2=80=EC=83=89=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../integration_search.model.php | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/modules/integration_search/integration_search.model.php b/modules/integration_search/integration_search.model.php index 3b46977a7..8a054b1f2 100644 --- a/modules/integration_search/integration_search.model.php +++ b/modules/integration_search/integration_search.model.php @@ -50,7 +50,7 @@ class integration_searchModel extends module $args->page_count = 10; $args->search_target = $search_target; $args->search_keyword = $search_keyword; - $args->sort_index = 'list_order'; + $args->sort_index = 'list_order'; $args->order_type = 'asc'; $args->statusList = array('PUBLIC'); if(!$args->module_srl) unset($args->module_srl); @@ -74,10 +74,10 @@ class integration_searchModel extends module function getComments($target, $module_srls_list, $search_keyword, $page=1, $list_count = 20) { $args = new stdClass(); - + if(is_array($module_srls_list)) { - if (count($module_srls_list) > 0) $module_srls = implode(',',$module_srls_list); + if (count($module_srls_list) > 0) $module_srls = implode(',',$module_srls_list); } else { @@ -94,7 +94,7 @@ class integration_searchModel extends module $args->page_count = 10; $args->search_target = 'content'; $args->search_keyword = $search_keyword; - $args->sort_index = 'list_order'; + $args->sort_index = 'list_order'; $args->order_type = 'asc'; // Get a list of documents $oCommentModel = &getModel('comment'); @@ -117,8 +117,10 @@ class integration_searchModel extends module */ function getTrackbacks($target, $module_srls_list, $search_target = "title", $search_keyword, $page=1, $list_count = 20) { + $oTrackbackModel = &getAdminModel('trackback'); + if(!$oTrackbackModel) return new Object(); $args = new stdClass(); - + if(is_array($module_srls_list)) $module_srls = implode(',',$module_srls_list); else $module_srls = $module_srls_list; if($target == 'exclude') $args->exclude_module_srl = $module_srls; @@ -128,10 +130,9 @@ class integration_searchModel extends module $args->page_count = 10; $args->search_target = $search_target; $args->search_keyword = $search_keyword; - $args->sort_index = 'list_order'; + $args->sort_index = 'list_order'; $args->order_type = 'asc'; // Get a list of documents - $oTrackbackModel = &getAdminModel('trackback'); $output = $oTrackbackModel->getTotalTrackbackList($args); if(!$output->toBool()|| !$output->data) return $output; return $output; @@ -152,7 +153,7 @@ class integration_searchModel extends module function _getFiles($target, $module_srls_list, $search_keyword, $page, $list_count, $direct_download = 'Y') { $args = new stdClass(); - + if(is_array($module_srls_list)) $module_srls = implode(',',$module_srls_list); else $module_srls = $module_srls_list; if($target == 'exclude') $args->exclude_module_srl = $module_srls; @@ -162,7 +163,7 @@ class integration_searchModel extends module $args->page_count = 10; $args->search_target = 'filename'; $args->search_keyword = $search_keyword; - $args->sort_index = 'files.file_srl'; + $args->sort_index = 'files.file_srl'; $args->order_type = 'desc'; $args->isvalid = 'Y'; $args->direct_download = $direct_download=='Y'?'Y':'N';