Skip to content

Commit

Permalink
Merged from MOODLE_15_STABLE
Browse files Browse the repository at this point in the history
Bug 3408.
  • Loading branch information
ikawhero committed Jun 3, 2005
1 parent d31b67c commit 116ae3b
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions course/editsection.php
Expand Up @@ -47,16 +47,24 @@

$usehtmleditor = can_use_html_editor();

$sectionname = get_string("name$course->format");
$stredit = get_string("edit", "", " $sectionname $section->section");
/// Inelegant hack for bug 3408
if ($course->format == 'site') {
$sectionname = get_string('site');
$stredit = get_string('edit', '', " $sectionname");
$strsummaryof = get_string('summaryof', '', " $sectionname");
} else {
$sectionname = get_string("name$course->format");
$stredit = get_string('edit', '', " $sectionname $section->section");
$strsummaryof = get_string('summaryof', '', " $sectionname $form->section");
}

print_header("$course->shortname: $stredit", "$course->fullname",
"<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a>
-> $stredit");

print_heading(get_string("summaryof", "", "$sectionname $form->section"));
print_simple_box_start("center");
include("editsection.html");
print_heading($strsummaryof);
print_simple_box_start('center');
include('editsection.html');
print_simple_box_end();

if ($usehtmleditor) {
Expand Down

0 comments on commit 116ae3b

Please sign in to comment.