mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
#19228556 휴지통에 있는 문서가 통합검색에서 검색되는 문제 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7827 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
7a61a6bdb2
commit
15a99f1c88
1 changed files with 11 additions and 4 deletions
|
|
@ -16,10 +16,16 @@
|
|||
* @brief 게시글 검색
|
||||
**/
|
||||
function getDocuments($target, $module_srls_list, $search_target, $search_keyword, $page=1, $list_count = 20) {
|
||||
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;
|
||||
else $args->module_srl = $module_srls;
|
||||
if(is_array($module_srls_list)) $module_srls_list = implode(',',$module_srls_list);
|
||||
|
||||
if($target == 'exclude') {
|
||||
$module_srls_list .= ',0'; // exclude 'trash'
|
||||
if ($module_srls_list{0} == ',') $module_srls_list = substr($module_srls_list, 1);
|
||||
$args->exclude_module_srl = $module_srls_list;
|
||||
} else {
|
||||
$args->module_srl = $module_srls_list;
|
||||
$args->exclude_module_srl = '0'; // exclude 'trash'
|
||||
}
|
||||
|
||||
$args->page = $page;
|
||||
$args->list_count = $list_count;
|
||||
|
|
@ -32,6 +38,7 @@
|
|||
|
||||
// 대상 문서들을 가져옴
|
||||
$oDocumentModel = &getModel('document');
|
||||
|
||||
return $oDocumentModel->getDocumentList($args);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue