| @@ 33-40 (lines=8) @@ | ||
| 30 |     public function index($pagination = null) { | |
| 31 | ||
| 32 | //////********** Pagination pages **********\\\\\\\ | |
| 33 |         if ($pagination) { | |
| 34 | $paginationSession = ['usr_manager_url' => $pagination]; | |
| 35 | $this->session->set_userdata($paginationSession); | |
| 36 |         } else { | |
| 37 |             $this->session->unset_userdata('usr_manager_url'); | |
| 38 | } | |
| 39 | ||
| 40 | $this->set_tpl_roles(); | |
| 41 | $this->template->add_array($this->genre_user_table()); | |
| 42 | $this->template->add_array($this->show_edit_prems_tpl(10)); | |
| 43 |         $this->template->registerJsFile(getModulePath('user_manager') . 'templates/js/script.js', 'after'); | |
| @@ 966-973 (lines=8) @@ | ||
| 963 |     public function GetPagesByCategory($cat_id = 'all', $pagination = null) { | |
| 964 | ||
| 965 | //////********** Pagination pages **********\\\\\\\ | |
| 966 |         if ($pagination) { | |
| 967 | $paginationSession = ['pages_pag_url' => $pagination]; | |
| 968 | $this->session->set_userdata($paginationSession); | |
| 969 |         } else { | |
| 970 |             $this->session->unset_userdata('pages_pag_url'); | |
| 971 | } | |
| 972 | ||
| 973 | $def_lang = $this->cms_admin->get_default_lang(); | |
| 974 |         $this->config->set_item('cur_lang', $def_lang['id']); | |
| 975 |         if ($cat_id != 'all') { | |
| 976 | $db_where = [ | |