MDL-10583 course format - discovered the get_section_name() that performs the fallback harcoded in previous commit. Merged from 19_STABLE

This commit is contained in:
stronk7
2009-02-05 13:30:08 +00:00
parent f5ca86967b
commit dfd74b5a72
+1 -6
View File
@@ -50,12 +50,7 @@
$stredit = get_string('edit', '', " $sectionname");
$strsummaryof = get_string('summaryof', '', " $sectionname");
} else {
/// Look for section name into specific course format lang file
$sectionname = get_string("name$course->format", "format_$course->format");
if ($sectionname == "[[name$course->format]]") {
/// Section name not in course format lang file, go to default moodle file
$sectionname = get_string("name$course->format");
}
$sectionname = get_section_name($course->format);
$stredit = get_string('edit', '', " $sectionname $section->section");
$strsummaryof = get_string('summaryof', '', " $sectionname $form->section");
}