@@ 380-385 (lines=6) @@ | ||
377 | 'description' => trim($this->input->post('description')), |
|
378 | ]; |
|
379 | ||
380 | if ($this->db->where('id', $id)->where('locale', $locale)->get('gallery_albums_i18n')->num_rows()) { |
|
381 | $this->db->where('id', $id)->where('locale', $locale); |
|
382 | $this->db->update('gallery_albums_i18n', $data_locale); |
|
383 | } else { |
|
384 | $this->db->insert('gallery_albums_i18n', $data_locale); |
|
385 | } |
|
386 | ||
387 | $album = $this->gallery_m->get_album($id); |
|
388 | ||
@@ 796-801 (lines=6) @@ | ||
793 | 'description' => trim($this->input->post('description')), |
|
794 | ]; |
|
795 | ||
796 | if ($this->db->where('id', $id)->where('locale', $locale)->get('gallery_category_i18n')->num_rows()) { |
|
797 | $this->db->where('id', $id)->where('locale', $locale); |
|
798 | $this->db->update('gallery_category_i18n', $data_locale); |
|
799 | } else { |
|
800 | $this->db->insert('gallery_category_i18n', $data_locale); |
|
801 | } |
|
802 | ||
803 | $this->lib_admin->log(lang('Gallery category was edited', 'gallery') . '. Id: ' . $id); |
|
804 | showMessage(lang('Changes have been saved', 'gallery')); |
@@ 172-177 (lines=6) @@ | ||
169 | 'admin_message' => $data['admin_message'], |
|
170 | 'description' => $data['description'], |
|
171 | ]; |
|
172 | if ($this->db->where('id', $id)->where('locale', $locale)->get('mod_email_paterns_i18n')->num_rows()) { |
|
173 | $this->db->where('id', $id)->where('locale', $locale)->update('mod_email_paterns_i18n', $data_locale); |
|
174 | } else { |
|
175 | $data_locale['variables'] = ''; |
|
176 | $this->db->insert('mod_email_paterns_i18n', $data_locale); |
|
177 | } |
|
178 | } |
|
179 | ||
180 | /** |