Skip to content

Commit

Permalink
mod-imscp MDL-19799 Updated print_header_simple and build_navigation …
Browse files Browse the repository at this point in the history
…to OUTPUT and PAGE equivalents
  • Loading branch information
samhemelryk committed Sep 8, 2009
1 parent 90e9e58 commit 44391f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mod/imscp/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
$PAGE->set_url('mod/imscp/index.php', array('id' => $course->id));
$PAGE->set_title($course->shortname.': '.$strimscps);
$PAGE->set_heading($course->fullname);
$navlinks = array(array('name' => $strimscps, 'link' => '', 'type' => 'activityinstance'));
echo $OUTPUT->header(build_navigation($navlinks), navmenu($course));
$PAGE->navbar->add($strimscps);
echo $OUTPUT->header();

if (!$imscps = get_all_instances_in_course('imscp', $course)) {
notice(get_string('thereareno', 'moodle', $strimscps), "$CFG->wwwroot/course/view.php?id=$course->id");
Expand Down
2 changes: 1 addition & 1 deletion mod/imscp/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
$PAGE->set_heading($course->fullname);
$PAGE->set_activity_record($imscp);
$PAGE->set_button(update_module_button($cm->id, '', get_string('modulename', 'imscp')));
echo $OUTPUT->header(build_navigation('', $cm), navmenu($course, $cm));
echo $OUTPUT->header();

// verify imsmanifest was parsed properly
if (!$imscp->structure) {
Expand Down

0 comments on commit 44391f9

Please sign in to comment.