@@ 380-388 (lines=9) @@ | ||
377 | $this->db->where('id', $id) |
|
378 | ->where('locale', $locale) |
|
379 | ->update('widget_i18n', $dataI18n); |
|
380 | } else { |
|
381 | $dataI18n = [ |
|
382 | 'id' => $id, |
|
383 | 'locale' => $locale, |
|
384 | 'data' => '', |
|
385 | 'title' => $this->input->post('title') |
|
386 | ]; |
|
387 | $this->db->insert('widget_i18n', $dataI18n); |
|
388 | } |
|
389 | ||
390 | $this->cache->delete_all(); |
|
391 |
@@ 310-312 (lines=3) @@ | ||
307 | if ($this->db->where('id', $id)->where('locale', $locale)->get('gallery_images_i18n')->num_rows()) { |
|
308 | $this->db->where('id', $id)->where('locale', $locale); |
|
309 | $this->db->update('gallery_images_i18n', ['description' => $data['description'], 'title' => $data['title']]); |
|
310 | } else { |
|
311 | $this->db->insert('gallery_images_i18n', ['id' => $id, 'locale' => $locale, 'title' => $data['title'], 'description' => $data['description']]); |
|
312 | } |
|
313 | } |
|
314 | ||
315 | public function update_position($id, $position = 0) { |