From 0d7f11800178eea31ea90b31f1c9cce29134cca3 Mon Sep 17 00:00:00 2001 From: samhemelryk Date: Tue, 8 Sep 2009 02:08:12 +0000 Subject: [PATCH] mod-page MDL-19799 Updated print_header_simple and build_navigation to OUTPUT and PAGE equivalents --- mod/page/index.php | 4 ++-- mod/page/view.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/page/index.php b/mod/page/index.php index 081c9a8c31..dda366d5b6 100644 --- a/mod/page/index.php +++ b/mod/page/index.php @@ -44,8 +44,8 @@ $strlastmodified = get_string('lastmodified'); $PAGE->set_url('mod/page/index.php', array('id' => $course->id)); $PAGE->set_title($course->shortname.': '.$strpages); $PAGE->set_heading($course->fullname); -$navlinks = array(array('name' => $strpages, 'link' => '', 'type' => 'activityinstance')); -echo $OUTPUT->header(build_navigation($navlinks), navmenu($course)); +$PAGE->navbar->add($strpages); +echo $OUTPUT->header(); if (!$pages = get_all_instances_in_course('page', $course)) { notice(get_string('thereareno', 'moodle', $strpages), "$CFG->wwwroot/course/view.php?id=$course->id"); diff --git a/mod/page/view.php b/mod/page/view.php index bd23036c68..6dc7e117bf 100644 --- a/mod/page/view.php +++ b/mod/page/view.php @@ -71,7 +71,7 @@ if ($inpopup and $page->display == RESOURCELIB_DISPLAY_POPUP) { $PAGE->set_heading($course->fullname); $PAGE->set_activity_record($page); $PAGE->set_button(update_module_button($cm->id, '', get_string('modulename', 'page'))); - echo $OUTPUT->header(build_navigation('', $cm), navmenu($course, $cm)); + echo $OUTPUT->header(); if (!empty($options['printheading'])) { echo $OUTPUT->heading(format_string($page->name), 2, 'main', 'pageheading'); -- 2.39.5