application/modules/sitemap/admin.php 1 location
|
@@ 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 |
application/modules/admin/settings.php 1 location
|
@@ 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 = [ |