mirror of
https://github.com/moodle/moodle.git
synced 2025-04-24 09:55:33 +02:00
MDL-59411 course: Fix unavailable typo
This commit is contained in:
parent
bf442807f5
commit
2c3a34f0c6
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user