Skip to content

Commit

Permalink
mod/quiz: Add a link back to the course page after a quiz is completed
Browse files Browse the repository at this point in the history
  • Loading branch information
fmarier committed Nov 9, 2007
1 parent fc05711 commit f285e95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lang/en_utf8/quiz.php
Expand Up @@ -221,6 +221,7 @@
$string['giftnovalidquestion'] = 'No valid question found';
$string['giftqtypenotset'] = 'Question type is not set';
$string['giftrightbraceerror'] = 'Could not find a }';
$string['gobacktocourse'] = 'Click here to go back to the course';
$string['grade'] = 'Grade';
$string['gradeall'] = 'Grade All';
$string['gradeaverage'] = 'Average grade';
Expand Down
3 changes: 3 additions & 0 deletions mod/quiz/review.php
Expand Up @@ -224,6 +224,9 @@
include('attempt_close_js.php');
}

// Button to go back to the course page
echo '<p align="center"><a href="'.$CFG->wwwroot.'/course/view.php?id='.$quiz->course.'">'.get_string('gobacktocourse', 'quiz').'</a></p>';

/// Print the navigation panel if required
$numpages = quiz_number_of_pages($attempt->layout);
if ($numpages > 1 and !$showall) {
Expand Down

0 comments on commit f285e95

Please sign in to comment.