MDL-20183 Uses some of the new Navigation API

This commit is contained in:
David Mudrak
2010-01-04 18:00:12 +00:00
parent c333a49ecc
commit 39861053c4
10 changed files with 83 additions and 58 deletions
+2 -4
View File
@@ -46,9 +46,7 @@ require_capability('mod/workshop:allocate', $context);
$PAGE->set_title($workshop->name);
$PAGE->set_heading($course->fullname);
//
// TODO navigation will be changed yet for Moodle 2.0
$navigation = build_navigation(get_string('allocation', 'workshop'), $cm);
$PAGE->navbar->add(get_string('allocation', 'workshop'));
$allocator = $workshop->allocator_instance($method);
$initresult = $allocator->init();
@@ -57,7 +55,7 @@ $initresult = $allocator->init();
// Output starts here
//
$wsoutput = $PAGE->theme->get_renderer('mod_workshop', $PAGE);
echo $OUTPUT->header($navigation);
echo $OUTPUT->header();
$allocators = $workshop->installed_allocators();
$tabrow = array();