MDL-59411 course: Fix unavailable typo

This commit is contained in:
David Monllao 2017-07-17 15:49:42 +02:00
parent bf442807f5
commit 2c3a34f0c6
2 changed files with 2 additions and 2 deletions

View File

@ -956,7 +956,7 @@ class core_course_renderer extends plugin_renderer_base {
* @param cm_info $cm
* @return string
*/
public function course_section_cm_unavilable_error_message(cm_info $cm) {
public function course_section_cm_unavailable_error_message(cm_info $cm) {
if ($cm->uservisible) {
return null;
}

View File

@ -2901,7 +2901,7 @@ function require_login($courseorid = null, $autologinguest = true, $cm = null, $
// Get the error message that activity is not available and why (if explanation can be shown to the user).
$PAGE->set_course($course);
$renderer = $PAGE->get_renderer('course');
$message = $renderer->course_section_cm_unavilable_error_message($cm);
$message = $renderer->course_section_cm_unavailable_error_message($cm);
redirect(course_get_url($course), $message, null, \core\output\notification::NOTIFY_ERROR);
}