Code Duplication    Length = 4-7 lines in 4 locations

main/forum/viewforum.php 2 locations

@@ 636-641 (lines=6) @@
633
                }
634
            }
635
            $icon_liststd = 'user.png';
636
            if (!api_is_anonymous() && api_is_allowed_to_session_edit(false, true)) {
637
                $iconsEdit .= '<a href="'.api_get_self().'?'.$cidreq.'&forum='
638
                    . $my_forum
639
                    . "&action=notify&content=thread&id={$row['thread_id']}"
640
                    . '">'.Display::return_icon($iconnotify, get_lang('NotifyMe')).'</a>';
641
            }
642
643
            if (api_is_allowed_to_edit(null, true) && $origin != 'learnpath') {
644
                $iconsEdit .= '<a href="'.api_get_self().'?'.$cidreq.'&forum='
@@ 643-649 (lines=7) @@
640
                    . '">'.Display::return_icon($iconnotify, get_lang('NotifyMe')).'</a>';
641
            }
642
643
            if (api_is_allowed_to_edit(null, true) && $origin != 'learnpath') {
644
                $iconsEdit .= '<a href="'.api_get_self().'?'.$cidreq.'&forum='
645
                    . $my_forum
646
                    . "&action=liststd&content=thread&id={$row['thread_id']}"
647
                    . '">'.Display::return_icon($icon_liststd, get_lang('StudentList'), array(), ICON_SIZE_SMALL)
648
                    . '</a>';
649
            }
650
            $html .= $iconsEdit;
651
            $html .= '</div>';
652
            $html .= '</div>';

main/inc/lib/banner.lib.php 1 location

@@ 242-245 (lines=4) @@
239
                .' '.$number_online_in_course.' </a></li>';
240
        }
241
242
        if (isset($user_id) && api_get_session_id() != 0) {
243
            $html .= '<li><a href="'.api_get_path(WEB_PATH)
244
                .'whoisonlinesession.php?id_coach='.$user_id.'&amp;referer='.urlencode($_SERVER['REQUEST_URI'])
245
                .'" target="_self">'
246
                .Display::return_icon('session.png', get_lang('UsersConnectedToMySessions'), array(), ICON_SIZE_TINY)
247
                .'</a></li>';
248
        }

main/wiki/wiki.inc.php 1 location

@@ 1102-1105 (lines=4) @@
1099
                    Display::return_icon('pdf.png', get_lang('ExportToPDF'), '', ICON_SIZE_MEDIUM).'</a>';
1100
1101
                $unoconv = api_get_configuration_value('unoconv.binaries');
1102
                if ($unoconv) {
1103
                    $actionsRight .= '<a href="'.api_get_path(WEB_CODE_PATH).'wiki/index.php?action=export_to_doc_file&id='.$row['id'].'&'.api_get_cidreq().'">'.
1104
                        Display::return_icon('export_doc.png', get_lang('ExportToDoc'), array(), ICON_SIZE_MEDIUM).'</a>';
1105
                }
1106
1107
                //export to print
1108
                ?>