mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 08:22:07 +02:00
Merging in fix for MDL-8196
This commit is contained in:
parent
e5edab1b72
commit
0ae3b5d334
@ -296,7 +296,7 @@ function lesson_print_header($cm, $course, $lesson, $currenttab = '') {
|
||||
print_header("$course->shortname: $strname", $course->fullname, $breadcrumb,
|
||||
'', $meta, true, $button, navmenu($course, $cm));
|
||||
|
||||
if (has_capability('mod/lesson:manage')) {
|
||||
if (has_capability('mod/lesson:manage', $context)) {
|
||||
print_heading_with_help(format_string($lesson->name, true), "overview", "lesson");
|
||||
} else {
|
||||
print_heading($lesson->name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user