MDL-10583 course format - some more uses of the get_section_name() added ; backported from HEAD

This commit is contained in:
stronk7 2009-02-05 13:42:18 +00:00
parent c65318bd3c
commit 13ea07e24c

View file

@ -587,7 +587,7 @@
$form->mode = "add"; $form->mode = "add";
$form->sesskey = !empty($USER->id) ? $USER->sesskey : ''; $form->sesskey = !empty($USER->id) ? $USER->sesskey : '';
$sectionname = get_string("name$course->format"); $sectionname = get_section_name($course->format);
$fullmodulename = get_string("modulename", $module->name); $fullmodulename = get_string("modulename", $module->name);
if ($form->section) { if ($form->section) {
@ -636,7 +636,7 @@
$form->type = $type; $form->type = $type;
} }
$sectionname = get_string("name$course->format"); $sectionname = get_section_name($course->format);
$fullmodulename = get_string("modulename", $module->name); $fullmodulename = get_string("modulename", $module->name);
if ($form->section && $course->format != 'site') { if ($form->section && $course->format != 'site') {