Code Duplication    Length = 6-6 lines in 2 locations

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

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