Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 135-140 (lines=6) @@
132
                    $actions .= '<a href="index.php?'.api_get_cidreq().'&action=thematic_advance_list&thematic_id='.$thematic[0].'">'.
133
                        Display::return_icon('lesson_plan_calendar.png',get_lang('ThematicAdvance'),'',ICON_SIZE_SMALL).'</a>&nbsp;';
134
135
                    if ($thematic[2] > 1) {
136
                        $actions .= '<a href="'.api_get_self().'?action=moveup&'.api_get_cidreq().'&thematic_id='.$thematic[0].'">'.
137
                            Display::return_icon('up.png', get_lang('Up'),'',ICON_SIZE_SMALL).'</a>';
138
                    } else {
139
                        $actions .= Display::return_icon('up_na.png','&nbsp;','',ICON_SIZE_SMALL);
140
                    }
141
                    if ($thematic[2] < self::get_max_thematic_item()) {
142
                        $actions .= '<a href="'.api_get_self().'?action=movedown&a'.api_get_cidreq().'&thematic_id='.$thematic[0].'">'.
143
                            Display::return_icon('down.png',get_lang('Down'),'',ICON_SIZE_SMALL).'</a>';
@@ 141-146 (lines=6) @@
138
                    } else {
139
                        $actions .= Display::return_icon('up_na.png','&nbsp;','',ICON_SIZE_SMALL);
140
                    }
141
                    if ($thematic[2] < self::get_max_thematic_item()) {
142
                        $actions .= '<a href="'.api_get_self().'?action=movedown&a'.api_get_cidreq().'&thematic_id='.$thematic[0].'">'.
143
                            Display::return_icon('down.png',get_lang('Down'),'',ICON_SIZE_SMALL).'</a>';
144
                    } else {
145
                        $actions .= Display::return_icon('down_na.png','&nbsp;','',ICON_SIZE_SMALL);
146
                    }
147
                    $actions .= '<a href="index.php?'.api_get_cidreq().'&action=thematic_edit&thematic_id='.$thematic[0].'">'.
148
                        Display::return_icon('edit.png',get_lang('Edit'),'',ICON_SIZE_SMALL).'</a>';
149
                    $actions .= '<a onclick="javascript:if(!confirm(\''.get_lang('AreYouSureToDelete').'\')) return false;" href="index.php?'.api_get_cidreq().'&action=thematic_delete&thematic_id='.$thematic[0].'">'.