From ba7472ccdf5a21c2d52dbd0d3c8b70870d1f25ac Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Thu, 23 Aug 2007 15:08:14 +0000 Subject: [PATCH] MDL-10910 Corrected two errors committed while fixing MDL-10870 --- course/index.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/course/index.php b/course/index.php index 6ac5a79ef6..9efa48513e 100644 --- a/course/index.php +++ b/course/index.php @@ -71,8 +71,11 @@ if ($countcategories > 1 || ($countcategories == 1 && count_records('course') > 200)) { $strcourses = get_string('courses'); $strcategories = get_string('categories'); - print_header("$site->shortname: $strcategories", build_navigation(array(array('name'=>$strcourses,'link'=>'','type'=>'misc'))), - $strcategories, '', '', true, update_categories_button()); + + $navlinks = array(); + $navlinks[] = array('name'=>$strcategories,'link'=>'','type'=>'misc'); + $navigation = build_navigation($navlinks); + print_header("$site->shortname: $strcategories", $strcourses, $navigation, '', '', true, update_categories_button()); print_heading($strcategories); print_box_start('categorybox'); print_whole_category_list(); @@ -113,8 +116,8 @@ admin_externalpage_setup('coursemgmt'); admin_externalpage_print_header(); } else { - print_header("$site->shortname: $strcategories", build_navigation(array(array('name'=>$strcourses,'link'=>'','type'=>'misc'))), - $strcategories, '', '', true, update_categories_button()); + print_header("$site->shortname: $strcategories", $strcourses, + build_navigation(array(array('name'=>$strcategories,'link'=>'','type'=>'misc'))), '', '', true, update_categories_button()); } print_heading($strcategories); -- 2.39.5