MDL-20447 - bulk upload: add heading to the page and fix navbar content.

This commit is contained in:
Rossiani Wijaya 2010-05-28 06:38:17 +00:00
parent cde82a41b2
commit 2e4fd16675
9 changed files with 19 additions and 3 deletions

View file

@ -170,10 +170,12 @@ if ($mform->is_cancelled()){
redirect("view.php?id=$cm->id&mode=entry&hook=$entry->id");
}
$stredit = empty($entry->id) ? get_string('addentry', 'glossary') : get_string('edit');
if (!empty($id)) {
$PAGE->navbar->add(get_string('edit'));
}
$PAGE->navbar->add($stredit);
$PAGE->set_title(format_string($glossary->name));
$PAGE->set_heading($course->fullname);
echo $OUTPUT->header();
echo $OUTPUT->heading(format_string($glossary->name));