]> git.mjollnir.org Git - moodle.git/commitdiff
mod-url MDL-19799 Updated print_header_simple and build_navigation to OUTPUT and...
authorsamhemelryk <samhemelryk>
Tue, 8 Sep 2009 02:09:07 +0000 (02:09 +0000)
committersamhemelryk <samhemelryk>
Tue, 8 Sep 2009 02:09:07 +0000 (02:09 +0000)
mod/url/index.php
mod/url/locallib.php

index 2dc080c2809104ec6304054c16e05ecf0038c189..ece29f61be8c15c2d04c0b54d55b309079d406f8 100644 (file)
@@ -44,8 +44,8 @@ $strlastmodified = get_string('lastmodified');
 $PAGE->set_url('mod/url/index.php', array('id' => $course->id));
 $PAGE->set_title($course->shortname.': '.$strurls);
 $PAGE->set_heading($course->fullname);
-$navlinks = array(array('name' => $strurls, 'link' => '', 'type' => 'activityinstance'));
-echo $OUTPUT->header(build_navigation($navlinks), navmenu($course));
+$PAGE->navbar->add($strurls);
+echo $OUTPUT->header();
 
 if (!$urls = get_all_instances_in_course('url', $course)) {
     notice(get_string('thereareno', 'moodle', $strurls), "$CFG->wwwroot/course/view.php?id=$course->id");
index cfaf9c12561b65b9500fd2735162b0c875bb707a..0cd72f361a93c5fb126d8a004b72acdc18677182 100644 (file)
@@ -84,7 +84,7 @@ function url_print_header($url, $cm, $course) {
     $PAGE->set_heading($course->fullname);
     $PAGE->set_activity_record($url);
     $PAGE->set_button(update_module_button($cm->id, '', get_string('modulename', 'url')));
-    echo $OUTPUT->header(build_navigation('', $cm), navmenu($course, $cm));
+    echo $OUTPUT->header();
 }
 
 /**