Code Duplication    Length = 3-3 lines in 2 locations

main/inc/lib/usermanager.lib.php 2 locations

@@ 2048-2050 (lines=3) @@
2045
            $production_list = '<div class="files-production"><ul id="productions">';
2046
            foreach ($productions as $file) {
2047
                $production_list .= '<li><img src="'.$add_image.'" /><a href="'.$production_dir.urlencode($file).'" target="_blank">'.htmlentities($file).'</a>';
2048
                if ($showDelete) {
2049
                    $production_list .= '&nbsp;&nbsp;<input style="width:16px;" type="image" name="remove_production['.urlencode($file).']" src="'.$del_image.'" alt="'.$del_text.'" title="'.$del_text.' '.htmlentities($file).'" onclick="javascript: return confirmation(\''.htmlentities($file).'\');" /></li>';
2050
                }
2051
            }
2052
            $production_list .= '</ul></div>';
2053
        }
@@ 2244-2246 (lines=3) @@
2241
            foreach ($extra_files as $file) {
2242
                $filename = substr($file, strlen($extra_field) + 1);
2243
                $extra_file_list .= '<li>'.Display::return_icon('archive.png').'<a href="'.$path.$extra_field.'/'.urlencode($filename).'" target="_blank">'.htmlentities($filename).'</a> ';
2244
                if ($showDelete) {
2245
                    $extra_file_list .= '<input style="width:16px;" type="image" name="remove_extra_'.$extra_field.'['.urlencode($file).']" src="'.$del_image.'" alt="'.$del_text.'" title="'.$del_text.' '.htmlentities($filename).'" onclick="javascript: return confirmation(\''.htmlentities($filename).'\');" /></li>';
2246
                }
2247
            }
2248
            $extra_file_list .= '</ul></div>';
2249
        }