]> git.mjollnir.org Git - moodle.git/commitdiff
mod/quiz: Add a link back to the course page after a quiz is completed
authorfmarier <fmarier>
Fri, 9 Nov 2007 01:17:48 +0000 (01:17 +0000)
committerfmarier <fmarier>
Fri, 9 Nov 2007 01:17:48 +0000 (01:17 +0000)
lang/en_utf8/quiz.php
mod/quiz/review.php

index c996ac785aea311c4da74d092aa957b2ab4ecc93..5c8a8a263946a0f77d213038fae2f9d68017698a 100644 (file)
@@ -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';
index 29bdcaab9c9788dbef2cf70fa3793bbb2c00cbaa..b70f64866150e6b70e4dc367abe3effdf9ec8588 100644 (file)
     }
     echo '</tbody></table>';
 
+    // 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) {