Code Duplication    Length = 3-5 lines in 2 locations

htdocs/class/uploader.php 1 location

@@ 149-151 (lines=3) @@
146
        if (isset($randomFilename)) {
147
            $this->randomFilename = $randomFilename;
148
        }
149
        if (!include_once $GLOBALS['xoops']->path('language/' . $GLOBALS['xoopsConfig']['language'] . '/uploader.php')) {
150
            include_once $GLOBALS['xoops']->path('language/english/uploader.php');
151
        }
152
    }
153
154
    /**

htdocs/modules/profile/class/field.php 1 location

@@ 245-249 (lines=5) @@
242
     **/
243
    public function getOutputValue(&$user, $profile)
244
    {
245
        if (file_exists($file = $GLOBALS['xoops']->path('modules/profile/language/' . $GLOBALS['xoopsConfig']['language'] . '/modinfo.php'))) {
246
            include_once $file;
247
        } else {
248
            include_once $GLOBALS['xoops']->path('modules/profile/language/english/modinfo.php');
249
        }
250
251
        $value = in_array($this->getVar('field_name'), $this->getUserVars()) ? $user->getVar($this->getVar('field_name')) : $profile->getVar($this->getVar('field_name'));
252