From 41d5033732434400d348532093cfe69dc9101ac7 Mon Sep 17 00:00:00 2001 From: mark-nielsen Date: Sat, 13 Oct 2007 02:36:08 +0000 Subject: [PATCH] Mergin fix for MDL-11696 from MOODLE_19_STABLE --- mod/lesson/locallib.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mod/lesson/locallib.php b/mod/lesson/locallib.php index beea2a3d2e..b6ab81fe8a 100644 --- a/mod/lesson/locallib.php +++ b/mod/lesson/locallib.php @@ -226,7 +226,8 @@ if (!defined("LESSON_RESPONSE_EDITOR")) { function lesson_print_header($cm, $course, $lesson, $currenttab = '') { global $CFG, $USER; - $strlesson = get_string('modulename', 'lesson'); + $strlesson = get_string('modulename', 'lesson'); + $strname = format_string($lesson->name, true, $course->id); $context = get_context_instance(CONTEXT_MODULE, $cm->id); @@ -244,13 +245,13 @@ function lesson_print_header($cm, $course, $lesson, $currenttab = '') { '', '', 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"); if (!empty($currenttab)) { include($CFG->dirroot.'/mod/lesson/tabs.php'); } } else { - print_heading(format_string($lesson->name, true)); + print_heading($strname); } lesson_print_messages(); -- 2.39.5