@@ 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); |
@@ 171-176 (lines=6) @@ | ||
168 | ->where('publish_date <= ', time()) |
|
169 | ->where('lang', config_item('cur_lang')); |
|
170 | ||
171 | if (count($category['fetch_pages']) > 0) { |
|
172 | $category['fetch_pages'][] = $category['id']; |
|
173 | $query->where_in('category', $category['fetch_pages']); |
|
174 | } else { |
|
175 | $query->where('category', $category['id']); |
|
176 | } |
|
177 | ||
178 | return $query; |
|
179 | } |