| @@ 198-208 (lines=11) @@ | ||
| 195 | ]; |
|
| 196 | break; |
|
| 197 | ||
| 198 | case 'basecategory': |
|
| 199 | $query = $this->db->get_where('category', ['id' => $this->input->post('category_base')]); |
|
| 200 | $url = $query->row(); |
|
| 201 | $array = [ |
|
| 202 | 'trash_id' => $this->input->post('category_base'), |
|
| 203 | 'trash_url' => ltrim($this->input->post('url'), '/'), |
|
| 204 | 'trash_redirect_type' => $this->input->post('redirect_type'), |
|
| 205 | 'trash_type' => $this->input->post('type'), |
|
| 206 | 'trash_redirect' => site_url($this->cms_base->get_category_full_path($url->id)), |
|
| 207 | ]; |
|
| 208 | break; |
|
| 209 | ||
| 210 | case '404': |
|
| 211 | $array = [ |
|
| @@ 310-322 (lines=13) @@ | ||
| 307 | ]; |
|
| 308 | break; |
|
| 309 | ||
| 310 | case 'basecategory': |
|
| 311 | $query = $this->db->get_where('category', ['id' => $this->input->post('category_base')]); |
|
| 312 | $url = $query->row(); |
|
| 313 | ||
| 314 | $array = [ |
|
| 315 | 'id' => $this->input->post('id'), |
|
| 316 | 'trash_id' => $this->input->post('category_base'), |
|
| 317 | 'trash_url' => $this->input->post('old_url'), |
|
| 318 | 'trash_redirect_type' => $this->input->post('redirect_type'), |
|
| 319 | 'trash_type' => $this->input->post('type'), |
|
| 320 | 'trash_redirect' => site_url($this->cms_base->get_category_full_path($url->id)), |
|
| 321 | ]; |
|
| 322 | break; |
|
| 323 | ||
| 324 | case '404': |
|
| 325 | $array = [ |
|