Code Duplication    Length = 5-6 lines in 3 locations

main/wiki/wiki.inc.php 3 locations

@@ 4079-4084 (lines=6) @@
4076
                $row[] = $ShowAssignment.$icon_task;
4077
                $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']).'">
4078
                '.api_htmlentities($obj->title).'</a>';
4079
                if ($userinfo !== false) {
4080
                    $row[] = UserManager::getUserProfileLink($userinfo);
4081
                } else {
4082
                    $row[] = get_lang('Anonymous').' ('.api_htmlentities(
4083
                            $obj->user_ip
4084
                        ).')';
4085
                }
4086
                $row[] = api_get_local_time(
4087
                    $obj->dtime,
@@ 4241-4245 (lines=5) @@
4238
                $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().'">'.
4239
                    api_htmlentities($obj->title).'</a>';
4240
                $row[] = $obj->version > 1 ? get_lang('EditedBy') : get_lang('AddedBy');
4241
                if ($userinfo !== false) {
4242
                    $row[] = UserManager::getUserProfileLink($userinfo);
4243
                } else {
4244
                    $row[] = get_lang('Anonymous').' ('.api_htmlentities($obj->user_ip).')';
4245
                }
4246
                $rows[] = $row;
4247
            }
4248
@@ 4415-4420 (lines=6) @@
4412
                    $row[] = $ShowAssignment;
4413
                    $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']).'">'.
4414
                        api_htmlentities($obj->title).'</a>';
4415
                    if ($userinfo !== false) {
4416
                        $row[] = UserManager::getUserProfileLink($userinfo);
4417
                    } else {
4418
                        $row[] = get_lang('Anonymous').' ('.$obj->user_ip.')';
4419
                    }
4420
                    $row[] = $year.'-'.$month.'-'.$day.' '.$hours.":".$minutes.":".$seconds;
4421
                    $rows[] = $row;
4422
                }
4423