Code Duplication    Length = 3-3 lines in 2 locations

main/gradebook/exercise_jump.php 1 location

@@ 60-62 (lines=3) @@
57
                    if ($count == 1) {
58
                        // If the exercise was added once redirect to the LP
59
                        $firstLp = current($exercise->lpList);
60
                        if (isset($firstLp['lp_id'])) {
61
                            $url = api_get_path(WEB_CODE_PATH) . 'lp/lp_controller.php?' . api_get_cidreq() . '&lp_id=' . $firstLp['lp_id'] . '&action=view&isStudentView=true';
62
                        }
63
                    } else {
64
                        // If the exercise was added multiple times show the LP list
65
                        $url = api_get_path(WEB_CODE_PATH) . 'lp/lp_controller.php?' . api_get_cidreq().'&action=list';

main/forum/forumfunction.inc.php 1 location

@@ 4252-4254 (lines=3) @@
4249
    $_course = api_get_course_info();
4250
    $user_id = api_get_user_id();
4251
    $subject = get_lang('NewForumPost').' - '.$_course['official_code'];
4252
    if (isset($thread_information) && is_array($thread_information)) {
4253
        $thread_link = api_get_path(WEB_CODE_PATH).'forum/viewthread.php?'.api_get_cidreq().'&forum='.$thread_information['forum_id'].'&thread='.$thread_information['thread_id'];
4254
    }
4255
    $email_body = get_lang('Dear').' '.api_get_person_name($user_info['firstname'], $user_info['lastname'], null, PERSON_NAME_EMAIL_ADDRESS).", <br />\n\r";
4256
    $email_body .= get_lang('NewForumPost')."\n";
4257
    $email_body .= get_lang('Course').': '.$_course['name'].' - ['.$_course['official_code']."] - <br />\n";