diff --git a/modules/board/board.view.php b/modules/board/board.view.php index 7c0da1803..0cb726577 100644 --- a/modules/board/board.view.php +++ b/modules/board/board.view.php @@ -47,27 +47,27 @@ class boardView extends board } // use_category <=1.5.x, hide_category >=1.7.x - $count_category = count($oDocumentModel->getCategoryList($module_srl)); + $count_category = count($oDocumentModel->getCategoryList($this->module_info->module_srl)); if($count_category) { - if($config->hide_category) + if($this->module_info->hide_category) { - $config->use_category = ($config->hide_category == 'Y') ? 'N' : 'Y'; + $this->module_info->use_category = ($this->module_info->hide_category == 'Y') ? 'N' : 'Y'; } - else if($config->use_category) + else if($this->module_info->use_category) { - $config->hide_category = ($config->use_category == 'Y') ? 'N' : 'Y'; + $this->module_info->hide_category = ($this->module_info->use_category == 'Y') ? 'N' : 'Y'; } else { - $config->hide_category = 'N'; - $config->use_category = 'Y'; + $this->module_info->hide_category = 'N'; + $this->module_info->use_category = 'Y'; } } else { - $config->hide_category = 'Y'; - $config->use_category = 'N'; + $this->module_info->hide_category = 'Y'; + $this->module_info->use_category = 'N'; } /**