@@ 170-173 (lines=4) @@ | ||
167 | $this->form_validation->set_rules('products_sub_categories_priority', lang('Products subcategories priority', 'sitemap'), 'required|callback_priority_validation'); |
|
168 | } |
|
169 | ||
170 | if ($this->form_validation->run($this) == FALSE) { |
|
171 | showMessage(validation_errors(), lang('Error', 'sitemap'), 'r'); |
|
172 | exit; |
|
173 | } |
|
174 | ||
175 | /** |
|
176 | * Prepare data to update priorities |
@@ 256-259 (lines=4) @@ | ||
253 | //cp_check_perm('cp_site_settings'); |
|
254 | ||
255 | $this->form_validation->set_rules('siteinfo_adminemail', lang('Admin email', 'admin'), 'trim|valid_email'); |
|
256 | if (!$this->form_validation->run($this)) { |
|
257 | showMessage(validation_errors(), lang('Error', 'admin'), 'r'); |
|
258 | return; |
|
259 | } |
|
260 | switch ($this->input->post('main_type')) { |
|
261 | case 'category': |
|
262 | $data = [ |
@@ 75-78 (lines=4) @@ | ||
72 | $this->load->library('Form_validation'); |
|
73 | $this->form_validation->set_rules('limit', lang('Image limit', 'gallery'), 'trim|required|integer'); |
|
74 | ||
75 | if ($this->form_validation->run($this) == FALSE) { |
|
76 | showMessage(validation_errors(), false, 'r'); |
|
77 | exit; |
|
78 | } |
|
79 | ||
80 | $data = [ |
|
81 | 'limit' => $this->input->post('limit'), |
|
@@ 151-154 (lines=4) @@ | ||
148 | $this->form_validation->set_rules('limit', lang('Image limit', 'gallery'), 'trim|required|integer'); |
|
149 | $this->form_validation->set_rules('album_id', lang('Choose Album', 'gallery'), 'trim|required|integer'); |
|
150 | ||
151 | if ($this->form_validation->run($this) == FALSE) { |
|
152 | showMessage(validation_errors(), false, 'r'); |
|
153 | exit; |
|
154 | } |
|
155 | ||
156 | $data = [ |
|
157 | 'limit' => $this->input->post('limit'), |