user MDL-19825 Upgraded print_header and build_navigation calls to use PAGE and OUTPUT equivilants

This commit is contained in:
samhemelryk
2009-09-02 08:36:16 +00:00
parent 46b02712fd
commit caa8363f83
14 changed files with 98 additions and 109 deletions
+6 -6
View File
@@ -21,13 +21,13 @@ $pluginstr = get_string('plugin', 'repository');
require_login($course, false);
$navlinks[] = array('name' => $fullname, 'link' => $CFG->wwwroot . '/user/view.php?id=' . $user->id, 'type' => 'misc');
$navlinks[] = array('name' => $strrepos, 'link' => null, 'type' => 'misc');
$link = new moodle_url($CFG->wwwroot . '/user/view.php', array('id'=>$user->id));
$PAGE->navbar->add($fullname, null, null, navigation_node::TYPE_SETTING, $link);
$PAGE->navbar->add($strrepos);
$PAGE->set_title("$course->fullname: $fullname: $strrepos");
$PAGE->set_heading($course->fullname);
$navigation = build_navigation($navlinks);
print_header("$course->fullname: $fullname: $strrepos", $course->fullname,
$navigation, "", "", true, " ", navmenu($course));
echo $OUTPUT->header();
$currenttab = 'repositories';
include('tabs.php');