Code Duplication    Length = 5-7 lines in 2 locations

admin/permissions.php 1 location

@@ 19-25 (lines=7) @@
16
17
include_once XOOPS_ROOT_PATH . '/class/xoopsform/grouppermform.php';
18
19
if (!defined(_MD_GWIKI_PAGE_PERM_EDIT_ANY)) {
20
    if (file_exists('../language/' . $xoopsConfig['language'] . '/main.php')) {
21
        include_once __DIR__ . '/../language/' . $xoopsConfig['language'] . '/main.php';
22
    } else {
23
        include_once __DIR__ . '/../language/english/main.php';
24
    }
25
}
26
27
$module_id = $xoopsModule->getVar('mid');
28

header.php 1 location

@@ 15-19 (lines=5) @@
12
include __DIR__ . '/../../mainfile.php';
13
include_once __DIR__ . '/include/functions.php';
14
15
if (file_exists('language/' . $xoopsConfig['language'] . '/modinfo.php')) {
16
    include_once __DIR__ . '/language/' . $xoopsConfig['language'] . '/modinfo.php';
17
} else {
18
    include_once __DIR__ . '/language/english/modinfo.php';
19
}
20