Code Duplication    Length = 5-6 lines in 2 locations

application/modules/core/core.php 2 locations

@@ 551-555 (lines=5) @@
548
549
                $this->load->module($mod_name . '/' . $mod_function);
550
551
                if (method_exists($mod_function, $func)) {
552
                    echo modules::run($mod_name . '/' . $mod_function . '/' . $func, $args);
553
                } else {
554
                    $this->error_404();
555
                }
556
            } else {
557
                $args = $this->grab_variables($n + 2);
558
                $this->load->module($mod_name);
@@ 559-564 (lines=6) @@
556
            } else {
557
                $args = $this->grab_variables($n + 2);
558
                $this->load->module($mod_name);
559
                if (method_exists($mod_name, $mod_function)) {
560
                    echo modules::run($mod_name . '/' . $mod_name . '/' . $mod_function, $args);
561
                } else {
562
                    // If method not found display 404 error.
563
                    $this->error_404();
564
                }
565
            }
566
567
            return TRUE;