]> git.mjollnir.org Git - moodle.git/commitdiff
merged fix for MDL-7140 duplicate course name in header
authortoyomoyo <toyomoyo>
Thu, 2 Nov 2006 03:17:44 +0000 (03:17 +0000)
committertoyomoyo <toyomoyo>
Thu, 2 Nov 2006 03:17:44 +0000 (03:17 +0000)
blog/header.php

index 4f4c92fa9a01027902ae16e085cb2a9e11585e00..b127250957fc3cd011aac2f09852fc686aad56e5 100755 (executable)
@@ -117,10 +117,10 @@ if (!$course = get_record('course', 'id', $courseid)) {
 
         case 'course':
             if ($tagid || !empty($tag)) {
-                print_header_simple("$course->shortname: $blogstring", $course->fullname,
+                print_header("$course->shortname: $blogstring", $course->fullname,
                             '<a href="index.php?filtertype=course&amp;filterselect='.$filterselect.'">'. "$blogstring</a> -> $tagstring: $taginstance->text",'','',true,$PAGE->get_extra_header_string());
             } else {
-                print_header_simple("$course->shortname: $blogstring", $course->fullname,
+                print_header("$course->shortname: $blogstring", $course->fullname,
                             $blogstring,'','',true,$PAGE->get_extra_header_string());
             }
         break;
@@ -130,11 +130,11 @@ if (!$course = get_record('course', 'id', $courseid)) {
             $thisgroup = get_record('groups', 'id', $filterselect);
 
             if ($tagid || !empty($tag)) {
-                print_header_simple("$course->shortname: $blogstring", $course->fullname,
+                print_header("$course->shortname: $blogstring", $course->fullname,
                             '<a href="'.$CFG->wwwroot.'/user/index.php?id='.$course->id.'&amp;group='.$filterselect.'">'.$thisgroup->name.'</a> ->
                             <a href="index.php?filtertype=group&amp;filterselect='.$filterselect.'">'. "$blogstring</a> -> $tagstring: $taginstance->text",'','',true,$PAGE->get_extra_header_string());
             } else {
-                print_header_simple("$course->shortname: $blogstring", $course->fullname,
+                print_header("$course->shortname: $blogstring", $course->fullname,
                             '<a href="'.$CFG->wwwroot.'/user/index.php?id='.$course->id.'&amp;group='.$filterselect.'">'.$thisgroup->name."</a> ->
                             $blogstring",'','',true,$PAGE->get_extra_header_string());