|
@@ 96-102 (lines=7) @@
|
| 93 |
|
} |
| 94 |
|
|
| 95 |
|
switch ($action) { |
| 96 |
|
case 'show_settings': |
| 97 |
|
$this->load->library('lib_category'); |
| 98 |
|
$cats = $this->lib_category->build(); |
| 99 |
|
|
| 100 |
|
$this->render('recent_news_form', ['widget' => $widget_data, 'cats' => $cats]); |
| 101 |
|
break; |
| 102 |
|
|
| 103 |
|
case 'update_settings': |
| 104 |
|
$this->form_validation->set_rules('news_count', lang('Amount of news', 'core'), 'trim|required|is_natural|min_length[1]'); |
| 105 |
|
$this->form_validation->set_rules('max_symdols', lang('Maximum number of characters', 'core'), 'trim|required|is_natural|min_length[1]'); |
|
@@ 146-151 (lines=6) @@
|
| 143 |
|
$this->load->library('similar_posts', null, 'similar_library'); |
| 144 |
|
|
| 145 |
|
switch ($action) { |
| 146 |
|
case 'show_settings': |
| 147 |
|
$this->load->library('lib_category'); |
| 148 |
|
$cats = $this->lib_category->build(); |
| 149 |
|
|
| 150 |
|
$this->render('similar_posts_form', ['widget' => $widget_data, 'cats' => $cats]); |
| 151 |
|
break; |
| 152 |
|
|
| 153 |
|
case 'update_settings': |
| 154 |
|
$settings = $this->input->post('settings'); |