| @@ 405-410 (lines=6) @@ | ||
| 402 | $this->db->where('category', $cat_id); |
|
| 403 | $pages = $this->db->get('content'); |
|
| 404 | ||
| 405 | if ($pages->num_rows() > 0) { |
|
| 406 | $this->load->module('admin/pages', 'pages'); |
|
| 407 | foreach ($pages->result_array() as $page) { |
|
| 408 | $this->pages->delete($page['id'], FALSE); |
|
| 409 | } |
|
| 410 | } |
|
| 411 | ||
| 412 | // Delete sub cats |
|
| 413 | $this->sub_cats = []; |
|
| @@ 439-444 (lines=6) @@ | ||
| 436 | $this->db->where('category', $cat_id); |
|
| 437 | $pages = $this->db->get('content'); |
|
| 438 | ||
| 439 | if ($pages->num_rows() > 0) { |
|
| 440 | $this->load->module('admin/pages', 'pages'); |
|
| 441 | foreach ($pages->result_array() as $page) { |
|
| 442 | $this->pages->delete($page['id'], FALSE); |
|
| 443 | } |
|
| 444 | } |
|
| 445 | } |
|
| 446 | } |
|
| 447 | } |
|