|
@@ 126-132 (lines=7) @@
|
| 123 |
|
} |
| 124 |
|
|
| 125 |
|
switch ($action) { |
| 126 |
|
case 'show_settings': |
| 127 |
|
$this->load->library('lib_category'); |
| 128 |
|
$cats = $this->lib_category->build(); |
| 129 |
|
|
| 130 |
|
$this->render('recent_news_form', ['widget' => $widget_data, 'cats' => $cats]); |
| 131 |
|
break; |
| 132 |
|
|
| 133 |
|
case 'update_settings': |
| 134 |
|
$this->form_validation->set_rules('news_count', lang('Amount of news', 'core'), 'trim|required|is_natural|min_length[1]'); |
| 135 |
|
$this->form_validation->set_rules('max_symdols', lang('Maximum number of characters', 'core'), 'trim|required|is_natural|min_length[1]'); |
|
@@ 177-182 (lines=6) @@
|
| 174 |
|
$this->load->library('similar_posts', null, 'similar_library'); |
| 175 |
|
|
| 176 |
|
switch ($action) { |
| 177 |
|
case 'show_settings': |
| 178 |
|
$this->load->library('lib_category'); |
| 179 |
|
$cats = $this->lib_category->build(); |
| 180 |
|
|
| 181 |
|
$this->render('similar_posts_form', ['widget' => $widget_data, 'cats' => $cats]); |
| 182 |
|
break; |
| 183 |
|
|
| 184 |
|
case 'update_settings': |
| 185 |
|
$settings = $this->input->post('settings'); |