From 8a789e52cc9d93e0b0c2dfe2fe88de8e0f657784 Mon Sep 17 00:00:00 2001 From: mark-nielsen Date: Sat, 13 Oct 2007 02:24:56 +0000 Subject: [PATCH] Fix for MDL-11696 --- mod/lesson/locallib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/lesson/locallib.php b/mod/lesson/locallib.php index 13e9156415e..a399cc77f8a 100644 --- a/mod/lesson/locallib.php +++ b/mod/lesson/locallib.php @@ -228,7 +228,7 @@ function lesson_print_header($cm, $course, $lesson, $currenttab = '') { $strlessons = get_string('modulenameplural', 'lesson'); $strlesson = get_string('modulename', 'lesson'); - $strname = format_string($lesson->name, true); + $strname = format_string($lesson->name, true, $course->id); $context = get_context_instance(CONTEXT_MODULE, $cm->id); @@ -297,9 +297,9 @@ function lesson_print_header($cm, $course, $lesson, $currenttab = '') { '', $meta, true, $button, navmenu($course, $cm)); if (has_capability('mod/lesson:manage', $context)) { - print_heading_with_help(format_string($lesson->name, true), "overview", "lesson"); + print_heading_with_help($strname, "overview", "lesson"); } else { - print_heading($lesson->name); + print_heading($strname); } if (!empty($currenttab) and has_capability('mod/lesson:manage', $context)) {