Code Duplication    Length = 3-5 lines in 2 locations

xoops_trust_path/libs/altsys/include/admin_in_theme_functions.php 1 location

@@ 91-95 (lines=5) @@
88
89
    // language files
90
91
    if (is_file(dirname(__DIR__) . '/language/' . $xoopsConfig['language'] . '/admin_in_theme.php')) {
92
        include_once dirname(__DIR__) . '/language/' . $xoopsConfig['language'] . '/admin_in_theme.php';
93
    } else {
94
        include_once dirname(__DIR__) . '/language/english/admin_in_theme.php';
95
    }
96
97
    // set the theme
98

xoops_trust_path/libs/altsys/include/gtickets.php 1 location

@@ 31-33 (lines=3) @@
28
            // language file
29
30
            if (defined('XOOPS_ROOT_PATH') && !empty($xoopsConfig['language']) && !mb_strstr($xoopsConfig['language'], '/')) {
31
                if (is_file(dirname(__DIR__) . '/language/' . $xoopsConfig['language'] . '/gticket_messages.phtml')) {
32
                    include dirname(__DIR__) . '/language/' . $xoopsConfig['language'] . '/gticket_messages.phtml';
33
                }
34
            }
35
36
            // default messages