Code Duplication    Length = 5-5 lines in 2 locations

include/functions.php 2 locations

@@ 37-41 (lines=5) @@
34
        // global $xoopsDB, $xoopsModule, $xoopsConfig, $xoopsModuleConfig;
35
        global $xoopsModule, $xoopsConfig;
36
37
        if (file_exists(MARTIN_ROOT_PATH . 'language/' . $xoopsConfig['language'] . '/modinfo.php')) {
38
            include_once MARTIN_ROOT_PATH . 'language/' . $xoopsConfig['language'] . '/modinfo.php';
39
        } else {
40
            include_once MARTIN_ROOT_PATH . 'language/english/modinfo.php';
41
        }
42
        if (file_exists(MARTIN_ROOT_PATH . 'language/' . $xoopsConfig['language'] . '/admin.php')) {
43
            include_once MARTIN_ROOT_PATH . 'language/' . $xoopsConfig['language'] . '/admin.php';
44
        } else {
@@ 42-46 (lines=5) @@
39
        } else {
40
            include_once MARTIN_ROOT_PATH . 'language/english/modinfo.php';
41
        }
42
        if (file_exists(MARTIN_ROOT_PATH . 'language/' . $xoopsConfig['language'] . '/admin.php')) {
43
            include_once MARTIN_ROOT_PATH . 'language/' . $xoopsConfig['language'] . '/admin.php';
44
        } else {
45
            include_once MARTIN_ROOT_PATH . 'language/english/admin.php';
46
        }
47
        include MARTIN_ROOT_PATH . 'admin/menu.php';
48
49
        $tpl = new XoopsTpl();