| @@ 32-52 (lines=21) @@ | ||
| 29 | ||
| 30 | // use_category <=1.5.x, hide_category >=1.7.x |
|
| 31 | $count_category = count($oDocumentModel->getCategoryList($this->module_info->module_srl)); |
|
| 32 | if($count_category) |
|
| 33 | {
|
|
| 34 | if($this->module_info->hide_category) |
|
| 35 | {
|
|
| 36 | $this->module_info->use_category = ($this->module_info->hide_category == 'Y') ? 'N' : 'Y'; |
|
| 37 | } |
|
| 38 | else if($this->module_info->use_category) |
|
| 39 | {
|
|
| 40 | $this->module_info->hide_category = ($this->module_info->use_category == 'Y') ? 'N' : 'Y'; |
|
| 41 | } |
|
| 42 | else |
|
| 43 | {
|
|
| 44 | $this->module_info->hide_category = 'N'; |
|
| 45 | $this->module_info->use_category = 'Y'; |
|
| 46 | } |
|
| 47 | } |
|
| 48 | else |
|
| 49 | {
|
|
| 50 | $this->module_info->hide_category = 'Y'; |
|
| 51 | $this->module_info->use_category = 'N'; |
|
| 52 | } |
|
| 53 | ||
| 54 | /** |
|
| 55 | * check the consultation function, if the user is admin then swich off consultation function |
|
| @@ 51-71 (lines=21) @@ | ||
| 48 | ||
| 49 | // use_category <=1.5.x, hide_category >=1.7.x |
|
| 50 | $count_category = count($oDocumentModel->getCategoryList($this->module_info->module_srl)); |
|
| 51 | if($count_category) |
|
| 52 | { |
|
| 53 | if($this->module_info->hide_category) |
|
| 54 | { |
|
| 55 | $this->module_info->use_category = ($this->module_info->hide_category == 'Y') ? 'N' : 'Y'; |
|
| 56 | } |
|
| 57 | else if($this->module_info->use_category) |
|
| 58 | { |
|
| 59 | $this->module_info->hide_category = ($this->module_info->use_category == 'Y') ? 'N' : 'Y'; |
|
| 60 | } |
|
| 61 | else |
|
| 62 | { |
|
| 63 | $this->module_info->hide_category = 'N'; |
|
| 64 | $this->module_info->use_category = 'Y'; |
|
| 65 | } |
|
| 66 | } |
|
| 67 | else |
|
| 68 | { |
|
| 69 | $this->module_info->hide_category = 'Y'; |
|
| 70 | $this->module_info->use_category = 'N'; |
|
| 71 | } |
|
| 72 | ||
| 73 | /** |
|
| 74 | * check the consultation function, if the user is admin then swich off consultation function |
|