Code Duplication    Length = 8-8 lines in 2 locations

application/modules/user_manager/admin.php 1 location

@@ 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');

application/modules/admin/pages.php 1 location

@@ 965-972 (lines=8) @@
962
    public function GetPagesByCategory($cat_id = 'all', $pagination = null) {
963
964
        //////**********  Pagination pages **********\\\\\\\
965
        if ($pagination) {
966
            $paginationSession = ['pages_pag_url' => $pagination];
967
            $this->session->set_userdata($paginationSession);
968
        } else {
969
            $this->session->unset_userdata('pages_pag_url');
970
        }
971
972
        $def_lang = $this->cms_admin->get_default_lang();
973
        CI::$APP->config->set_item('cur_lang', $def_lang['id']);
974
        if ($cat_id != 'all') {
975
            $db_where = [