Merge branch 'MDL-41621' of git://github.com/rwijaya/moodle

This commit is contained in:
Marina Glancy 2013-09-16 17:14:18 +10:00
commit 4ead355143
2 changed files with 4 additions and 3 deletions

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);

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');