diff --git a/mod/resource/type/file/resource.class.php b/mod/resource/type/file/resource.class.php index 8f71f581e7a..949ccf6dd2d 100644 --- a/mod/resource/type/file/resource.class.php +++ b/mod/resource/type/file/resource.class.php @@ -378,9 +378,7 @@ class resource_file extends resource_base { require_js(array('yui_dom')); ///Moodle Header and navigation bar - $navlinks = array(); - $navlinks[] = array('name' => format_string($resource->name), 'link' => null, 'type' => 'misc'); - $navigation = build_navigation($navlinks); + $navigation = build_navigation($this->navlinks, $cm); 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; @@ -398,6 +396,7 @@ class resource_file extends resource_base { ///add some javascript in order to fit this object tag into the browser window echo ' ';