Permalink
Browse files

MDL-29115 lesson mod: fixed the display of 'try again' button so it r…

…elates to lesson setting
  • Loading branch information...
1 parent 79b0fec commit 4fd95658bb080942f6a20bec92329f43fd3a2ccd Rossiani Wijaya committed Nov 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/lesson/continue.php
View
@@ -197,7 +197,7 @@
}
// Review button back
-if (!$result->correctanswer && !$result->noanswer && !$result->isessayquestion && !$reviewmode) {
+if (!$result->correctanswer && !$result->noanswer && !$result->isessayquestion && !$reviewmode && $lesson->review) {
$url = $CFG->wwwroot.'/mod/lesson/view.php';
$content = html_writer::empty_tag('input', array('type'=>'hidden', 'name'=>'id', 'value'=>$cm->id));
$content .= html_writer::empty_tag('input', array('type'=>'hidden', 'name'=>'pageid', 'value'=>$page->id));

0 comments on commit 4fd9565

Please sign in to comment.