Skip to content

Commit

Permalink
mod-page MDL-19799 Updated print_header_simple and build_navigation t…
Browse files Browse the repository at this point in the history
…o OUTPUT and PAGE equivalents
  • Loading branch information
samhemelryk committed Sep 8, 2009
1 parent 3180e71 commit 0d7f118
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mod/page/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
$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");
Expand Down
2 changes: 1 addition & 1 deletion mod/page/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
$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');
Expand Down

0 comments on commit 0d7f118

Please sign in to comment.