Code Duplication    Length = 3-4 lines in 2 locations

web/admin/inc/common.inc.php 1 location

@@ 302-304 (lines=3) @@
299
                // echo "processing multi-lang ".$option['name']. "with value ".$option['value'];
300
                $taggedarray = unserialize($option['value']);
301
                $language = _("default/other languages");
302
                if ($taggedarray['lang'] != 'C') {
303
                    $language = Config::$LANGUAGES[$taggedarray['lang']]['display'];
304
                }
305
                $content = $taggedarray["content"];
306
            }
307
            

web/admin/inc/manageDBLink.inc.php 1 location

@@ 81-84 (lines=4) @@
78
79
        foreach ($names as $name) {
80
            $thename = unserialize($name['value']);
81
            if ($thename['lang'] == "C")
82
                $language = "default/other";
83
            else
84
                $language = Config::$LANGUAGES[$thename['lang']]['display'];
85
86
            echo "<tr><td>" . sprintf(_("Institution Name (%s)"), $language) . "</td><td>" . $thename['content'] . "</td></tr>";
87
        }