From: stronk7 Date: Thu, 5 Feb 2009 13:30:08 +0000 (+0000) Subject: MDL-10583 course format - discovered the get_section_name() that performs the fallbac... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=dfd74b5a72d842dd9e135c8f3b88f489cfbf4c16;p=moodle.git MDL-10583 course format - discovered the get_section_name() that performs the fallback harcoded in previous commit. Merged from 19_STABLE --- diff --git a/course/editsection.php b/course/editsection.php index 58a8c4b2b4..d1a42faac6 100644 --- a/course/editsection.php +++ b/course/editsection.php @@ -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"); }