From c10cac4e4afd898d29116ca3fb5cab2478ae413e Mon Sep 17 00:00:00 2001 From: fmarier Date: Fri, 9 Nov 2007 01:14:45 +0000 Subject: [PATCH] mod/quiz: Add a link back to the course page after a quiz is completed --- lang/en_utf8/quiz.php | 1 + mod/quiz/review.php | 3 +++ 2 files changed, 4 insertions(+) diff --git a/lang/en_utf8/quiz.php b/lang/en_utf8/quiz.php index c996ac785ae..5c8a8a26394 100644 --- a/lang/en_utf8/quiz.php +++ b/lang/en_utf8/quiz.php @@ -256,6 +256,7 @@ $string['giftnonumericalanswers'] = 'No answers found for numerical question'; $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'; diff --git a/mod/quiz/review.php b/mod/quiz/review.php index 29bdcaab9c9..b70f6486615 100644 --- a/mod/quiz/review.php +++ b/mod/quiz/review.php @@ -238,6 +238,9 @@ } echo ''; + // Button to go back to the course page + echo '

'.get_string('gobacktocourse', 'quiz').'

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