Code Duplication    Length = 10-12 lines in 2 locations

application/modules/gallery/gallery.php 1 location

@@ 29-40 (lines=12) @@
26
27
    private $settings = [];
28
29
    public function __construct() {
30
        parent::__construct();
31
        $lang = new MY_Lang();
32
        $lang->load('gallery');
33
34
        $this->load->module('core');
35
        $this->load->model('gallery_m');
36
37
        // Load gallery settings
38
        $this->settings = $this->gallery_m->load_settings();
39
        $this->load->helper('gallery');
40
    }
41
42
    public function autoload() {
43

application/modules/wishlist/admin.php 1 location

@@ 17-26 (lines=10) @@
14
class Admin extends BaseAdminController
15
{
16
17
    public function __construct() {
18
        parent::__construct();
19
        $this->load->model('wishlist_model');
20
        $this->load->language('wishlist');
21
        $this->load->helper('string_helper');
22
        $this->settings = $this->wishlist_model->getSettings();
23
24
        $lang = new MY_Lang();
25
        $lang->load('wishlist');
26
    }
27
28
    /**
29
     * render admin start page