mod-folder MDL-19799 Updated print_header_simple and build_navigation to OUTPUT and PAGE equivalents

This commit is contained in:
samhemelryk 2009-09-08 02:12:44 +00:00
parent ef8869c7fe
commit 5647cde8d0
2 changed files with 3 additions and 3 deletions

View File

@ -44,8 +44,8 @@ $strlastmodified = get_string('lastmodified');
$PAGE->set_url('mod/folder/index.php', array('id' => $course->id));
$PAGE->set_title($course->shortname.': '.$strfolders);
$PAGE->set_heading($course->fullname);
$navlinks = array(array('name' => $strfolders, 'link' => '', 'type' => 'activityinstance'));
echo $OUTPUT->header(build_navigation($navlinks), navmenu($course));
$PAGE->navbar->add($strfolders);
echo $OUTPUT->header();
if (!$folders = get_all_instances_in_course('folder', $course)) {
notice(get_string('thereareno', 'moodle', $strfolders), "$CFG->wwwroot/course/view.php?id=$course->id");

View File

@ -54,7 +54,7 @@ $PAGE->set_title($course->shortname.': '.$folder->name);
$PAGE->set_heading($course->fullname);
$PAGE->set_activity_record($folder);
$PAGE->set_button(update_module_button($cm->id, '', get_string('modulename', 'folder')));
echo $OUTPUT->header(build_navigation('', $cm), navmenu($course, $cm));
echo $OUTPUT->header();
echo $OUTPUT->heading(format_string($folder->name), 2);