MDL-41621 Assign mod: fix page heading levels

This commit is contained in:
Rossiani Wijaya
2013-09-09 10:24:19 +08:00
parent 3b42864d65
commit bea4ed1b44
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -40,6 +40,7 @@ $PAGE->navbar->add($strplural);
$PAGE->set_title($strplural);
$PAGE->set_heading($course->fullname);
echo $OUTPUT->header();
echo $OUTPUT->heading(format_string($strplural));
$context = context_course::instance($course->id);
+3 -3
View File
@@ -221,14 +221,14 @@ class mod_assign_renderer extends plugin_renderer_base {
}
$this->page->set_title(get_string('pluginname', 'assign'));
$this->page->set_heading($header->assign->name);
$this->page->set_heading($this->page->course->fullname);
$o .= $this->output->header();
$heading = format_string($header->assign->name, false, array('context' => $header->context));
$o .= $this->output->heading($heading);
if ($header->preface) {
$o .= $header->preface;
}
$heading = format_string($header->assign->name, false, array('context' => $header->context));
$o .= $this->output->heading($heading);
if ($header->showintro) {
$o .= $this->output->box_start('generalbox boxaligncenter', 'intro');