From 6ebb04cff68cd510344f26b4d9fcadbd80cc7d0c Mon Sep 17 00:00:00 2001 From: jerome Date: Tue, 4 Nov 2008 01:52:33 +0000 Subject: [PATCH] MDL-10021: use build_navigation() instead a string into print_header() --- mod/resource/type/file/resource.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mod/resource/type/file/resource.class.php b/mod/resource/type/file/resource.class.php index ac88a7cccea..8f71f581e7a 100644 --- a/mod/resource/type/file/resource.class.php +++ b/mod/resource/type/file/resource.class.php @@ -378,7 +378,10 @@ class resource_file extends resource_base { require_js(array('yui_dom')); ///Moodle Header and navigation bar - print_header($pagetitle, $course->fullname, "$this->navigation ".format_string($resource->name), "", "", true, update_module_button($cm->id, $course->id, $this->strresource), navmenu($course, $cm, "parent")); + $navlinks = array(); + $navlinks[] = array('name' => format_string($resource->name), 'link' => null, 'type' => 'misc'); + $navigation = build_navigation($navlinks); + print_header($pagetitle, $course->fullname, $navigation, "", "", true, update_module_button($cm->id, $course->id, $this->strresource), navmenu($course, $cm, "parent")); $options = new object(); $options->para = false; if (!empty($localpath)) { // Show some help