Code Duplication    Length = 5-6 lines in 3 locations

main/wiki/wiki.inc.php 3 locations

@@ 3764-3769 (lines=6) @@
3761
                $row[] = $ShowAssignment.$icon_task;
3762
                $row[] = '<a href="'.api_get_self().'?cidReq='.$_course['code'].'&action=showpage&title='.api_htmlentities(urlencode($obj->reflink)).'&session_id='.api_htmlentities($_GET['session_id']).'&group_id='.api_htmlentities($_GET['group_id']).'">
3763
                '.api_htmlentities($obj->title).'</a>';
3764
                if ($userinfo !== false) {
3765
                    $row[] = UserManager::getUserProfileLink($userinfo);
3766
                }
3767
                else {
3768
                    $row[] = get_lang('Anonymous').' ('.api_htmlentities($obj->user_ip).')';
3769
                }
3770
                $row[] = api_get_local_time($obj->dtime, null, date_default_timezone_get());
3771
                $showdelete = '';
3772
                if (api_is_allowed_to_edit(false, true) || api_is_platform_admin()) {
@@ 3904-3908 (lines=5) @@
3901
                $row[] = '<a href="'.api_get_self().'?'.api_get_cidreq().'&action=showpage&title='.api_htmlentities(urlencode($obj->reflink)).'&amp;view='.$obj->id.'&session_id='.api_get_session_id().'&group_id='.api_get_group_id().'">'.
3902
                    api_htmlentities($obj->title).'</a>';
3903
                $row[] = $obj->version > 1 ? get_lang('EditedBy') : get_lang('AddedBy');
3904
                if ($userinfo !== false) {
3905
                    $row[] = UserManager::getUserProfileLink($userinfo);
3906
                } else {
3907
                    $row[] = get_lang('Anonymous').' ('.api_htmlentities($obj->user_ip).')';
3908
                }
3909
                $rows[] = $row;
3910
            }
3911
@@ 4035-4040 (lines=6) @@
4032
                    $row[] = $ShowAssignment;
4033
                    $row[] = '<a href="'.api_get_self().'?cidReq='.$_course['code'].'&action=showpage&title='.api_htmlentities(urlencode($obj->reflink)).'&session_id='.api_htmlentities($_GET['session_id']).'&group_id='.api_htmlentities($_GET['group_id']).'">'.
4034
                        api_htmlentities($obj->title).'</a>';
4035
                    if ($userinfo !== false) {
4036
                        $row[] = UserManager::getUserProfileLink($userinfo);
4037
                    }
4038
                    else {
4039
                        $row[] = get_lang('Anonymous').' ('.$obj->user_ip.')';
4040
                    }
4041
                    $row[] = $year.'-'.$month.'-'.$day.' '.$hours.":".$minutes.":".$seconds;
4042
                    $rows[] = $row;
4043
                }