From: fmarier Date: Fri, 9 Nov 2007 01:17:48 +0000 (+0000) Subject: mod/quiz: Add a link back to the course page after a quiz is completed X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=69b339390aa66be8c91c7b6cb13479301a0cfa23;p=moodle.git mod/quiz: Add a link back to the course page after a quiz is completed --- diff --git a/lang/en_utf8/quiz.php b/lang/en_utf8/quiz.php index c996ac785a..5c8a8a2639 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 29bdcaab9c..b70f648661 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) {