Skip to content
Permalink
Browse files

MDL-59411 course: Fix unavailable typo

  • Loading branch information...
dmonllao committed Jul 17, 2017
1 parent 6f90ebe commit 7b735c253762a4372d16111455bcc9eba0ba519b
Showing with 2 additions and 2 deletions.
  1. +1 −1 course/renderer.php
  2. +1 −1 lib/moodlelib.php
@@ -919,7 +919,7 @@ public function course_section_cm($course, &$completioninfo, cm_info $mod, $sect
* @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;
}
@@ -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);
}

0 comments on commit 7b735c2

Please sign in to comment.
You can’t perform that action at this time.