]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-10583 course format - discovered the get_section_name() that performs the fallbac...
authorstronk7 <stronk7>
Thu, 5 Feb 2009 13:30:08 +0000 (13:30 +0000)
committerstronk7 <stronk7>
Thu, 5 Feb 2009 13:30:08 +0000 (13:30 +0000)
course/editsection.php

index 58a8c4b2b47612b301948b44ab4a5a1b744d4ed5..d1a42faac6dd54c4cd0cf5eebb244fb4ed41b0b0 100644 (file)
         $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");
     }