Code Duplication    Length = 5-5 lines in 2 locations

class/smartobjectabout.php 1 location

@@ 53-57 (lines=5) @@
50
        global $xoopsModule, $xoopsConfig;
51
52
        $fileName = XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/' . $xoopsConfig['language'] . '/modinfo.php';
53
        if (file_exists($fileName)) {
54
            include_once $fileName;
55
        } else {
56
            include_once XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/english/modinfo.php';
57
        }
58
        $this->_aboutTitle = $aboutTitle;
59
60
        $this->_lang_developer_contributor = _CO_SOBJECT_DEVELOPER_CONTRIBUTOR;

include/functions.php 1 location

@@ 174-178 (lines=5) @@
171
     * include SmartObject admin language file
172
     */
173
    $fileName = XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/' . $xoopsConfig['language'] . '/admin.php';
174
    if (file_exists($fileName)) {
175
        include_once $fileName;
176
    } else {
177
        include_once XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/english/admin.php';
178
    }
179
    ?>
180
    <script type='text/javascript'>
181
        <!--