| @@ 60-65 (lines=6) @@ | ||
| 57 | $ci->db->where('publish_date <=', time()); |
|
| 58 | $ci->db->where('lang', $ci->config->item('cur_lang')); |
|
| 59 | ||
| 60 | if (count($category['fetch_pages']) > 0) { |
|
| 61 | $category['fetch_pages'][] = $category['id']; |
|
| 62 | $ci->db->where_in('category', $category['fetch_pages']); |
|
| 63 | } else { |
|
| 64 | $ci->db->where('category', $category['id']); |
|
| 65 | } |
|
| 66 | ||
| 67 | $ci->db->select('content.*'); |
|
| 68 | $ci->db->select('CONCAT_WS("", content.cat_url, content.url) as full_url', FALSE); |
|
| @@ 796-801 (lines=6) @@ | ||
| 793 | $this->db->where('publish_date <=', time()); |
|
| 794 | $this->db->where('lang', $this->config->item('cur_lang')); |
|
| 795 | ||
| 796 | if (count($category['fetch_pages']) > 0) { |
|
| 797 | $category['fetch_pages'][] = $category['id']; |
|
| 798 | $this->db->where_in('category', $category['fetch_pages']); |
|
| 799 | } else { |
|
| 800 | $this->db->where('category', $category['id']); |
|
| 801 | } |
|
| 802 | ||
| 803 | $this->db->select('content.*'); |
|
| 804 | $this->db->select('CONCAT_WS("", content.cat_url, content.url) as full_url', FALSE); |
|