From b3ddf59ab463c8a5fde931dfcf49b6270955694f Mon Sep 17 00:00:00 2001 From: Rossiani Wijaya Date: Thu, 27 May 2010 09:47:33 +0000 Subject: [PATCH] add page heading --- course/category.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/course/category.php b/course/category.php index e8e3cf49a67..29b791726ff 100644 --- a/course/category.php +++ b/course/category.php @@ -163,9 +163,12 @@ admin_externalpage_setup('coursemgmt', '', $urlparams, $CFG->wwwroot . '/course/category.php'); $PAGE->set_context($context); // Ensure that we are actually showing blocks etc for the cat context echo $OUTPUT->header(); - } else { + } else { + $PAGE->navbar->add($strcategories, new moodle_url('/course/index.php')); + $PAGE->navbar->add($category->name); + $PAGE->navbar->add($strcourses); $PAGE->set_title("$site->shortname: $category->name"); - $PAGE->set_heading("$site->fullname: $strcourses"); + $PAGE->set_heading($site->fullname); $PAGE->set_button(print_course_search('', true, 'navbar')); $PAGE->set_pagelayout('coursecategory'); echo $OUTPUT->header();