mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 10:11:38 +09:00
Merge pull request #2400 from seungh/fix/document_category
통합게시판에 하위게시판의 글 카테고리 문제
This commit is contained in:
commit
d371c9c872
1 changed files with 14 additions and 1 deletions
|
|
@ -226,7 +226,20 @@ class BoardView extends Board
|
|||
return;
|
||||
}
|
||||
|
||||
Context::set('category_list', DocumentModel::getCategoryList($this->module_srl));
|
||||
// Get category list for documents belong to other modules. (i.e. submodule in combined board)
|
||||
if (empty($this->include_modules))
|
||||
{
|
||||
$category_list = DocumentModel::getCategoryList($this->module_srl);
|
||||
}
|
||||
else
|
||||
{
|
||||
$category_list = array();
|
||||
foreach ($this->include_modules as $module_srl)
|
||||
{
|
||||
$category_list += DocumentModel::getCategoryList($module_srl);
|
||||
}
|
||||
}
|
||||
Context::set('category_list', $category_list);
|
||||
|
||||
$oSecurity = new Security();
|
||||
$oSecurity->encodeHTML('category_list.', 'category_list.childs.');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue