Permalink
Browse files

Meaningful string shown in breadcrumb and heading when editing site t…

…opic.

Bug 3408.
  • Loading branch information...
1 parent 2c20f70 commit 9bb32eb744d4bc02181396beb07603993acd9038 ikawhero committed Jun 3, 2005
Showing with 13 additions and 5 deletions.
  1. +13 −5 course/editsection.php
View
@@ -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) {

0 comments on commit 9bb32eb

Please sign in to comment.