if ($nothingtodisplay) {
notify(get_string('nolessonattempts', 'lesson'));
- print_footer($course);
+ echo $OUTPUT->footer();
exit();
}
}
/// Finish the page
- print_footer($course);
+ echo $OUTPUT->footer();
?>
echo '<div class="lessonbutton standardbutton" style="padding: 5px;"><a href="'.$CFG->wwwroot.'/course/view.php?id='. $course->id .'">'. get_string('returnto', 'lesson', format_string($course->fullname, true)) .'</a></div>';
echo '</div>';
print_box_end();
- print_footer($course);
+ echo $OUTPUT->footer();
exit();
} else if ($lesson->usepassword and empty($USER->lessonloggedin[$lesson->id])) { // Password protected lesson code
echo '</fieldset></form>';
print_box_end();
echo "</div>\n";
- print_footer($course);
+ echo $OUTPUT->footer();
exit();
}
echo '<p style="text-align:center;">'.implode('<br />'.get_string('and', 'lesson').'<br />', $errors).'</p>';
print_box_end();
echo '</p>';
- print_footer($course);
+ echo $OUTPUT->footer();
exit();
}
}
get_string('no').'</a></div>';
echo '</span>';
}
- print_footer($course);
+ echo $OUTPUT->footer();
exit();
}
echo "<br /><br /><div class=\"lessonbutton standardbutton\"><a href=\"../../course/view.php?id=$course->id\">".get_string('returntocourse', 'lesson').'</a></div>';
echo "</div>";
print_box_end();
- print_footer($course);
+ echo $OUTPUT->footer();
exit();
//redirect("../../course/view.php?id=$course->id", get_string("alreadytaken", "lesson"));
// allow student to retake course even if they have the maximum grade
}
/// Finish the page
- print_footer($course);
+ echo $OUTPUT->footer();
/// Mark as viewed
$completion=new completion_info($course);