fix #357 잘못 된 변수명으로 인해 카테고리 설정이 적용되지 않는 문제 수정

This commit is contained in:
bnu 2014-01-22 22:09:09 +09:00
parent 82974b0438
commit 9fe81117f9

View file

@ -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';
}
/**