course formats MDL-22647 Course format names are now properly supported and used. Big thanks to Brandon Turner for the patch.
This commit is contained in:
+3
-10
@@ -66,16 +66,9 @@ if ($mform->is_cancelled()){
|
||||
redirect("view.php?id=$course->id");
|
||||
}
|
||||
|
||||
/// Inelegant hack for bug 3408
|
||||
if ($course->format == 'site') {
|
||||
$sectionname = get_string('site');
|
||||
$stredit = get_string('edita', '', " $sectionname");
|
||||
$strsummaryof = get_string('summaryof', '', " $sectionname");
|
||||
} else {
|
||||
$sectionname = get_section_name($course->format);
|
||||
$stredit = get_string('edita', '', " $sectionname $section->section");
|
||||
$strsummaryof = get_string('summaryof', '', " $sectionname $section->section");
|
||||
}
|
||||
$sectionname = get_section_name($course, $section);
|
||||
$stredit = get_string('edita', '', " $sectionname");
|
||||
$strsummaryof = get_string('summaryof', '', " $sectionname");
|
||||
|
||||
$PAGE->set_title($stredit);
|
||||
$PAGE->set_heading($course->fullname);
|
||||
|
||||
Reference in New Issue
Block a user