]> git.mjollnir.org Git - moodle.git/commitdiff
Make student name into a link on the review page
authorgustav_delius <gustav_delius>
Sun, 9 Apr 2006 21:58:58 +0000 (21:58 +0000)
committergustav_delius <gustav_delius>
Sun, 9 Apr 2006 21:58:58 +0000 (21:58 +0000)
mod/quiz/review.php

index ac4e6bf8807122873d94c0d19130ba49642b8eed..3b7ccd31767a8019b92d01d806132f782d0792da 100644 (file)
     if ($attempt->userid <> $USER->id) {
        $student = get_record('user', 'id', $attempt->userid);
        $picture = print_user_picture($student->id, $course->id, $student->picture, false, true);
-       $table->data[] = array($picture, fullname($student, true));
+       $table->data[] = array($picture, '<a href="'.$CFG->wwwroot.'/user/view.php?id='.$student->id.'&amp;course='.$course->id.'">'.fullname($student, true).'</a>');
     }
     if ($isteacher and count($attempts = get_records_select('quiz_attempts', "quiz = '$quiz->id' AND userid = '$attempt->userid'", 'attempt ASC')) > 1) {
         // print list of attempts