]> git.mjollnir.org Git - moodle.git/commitdiff
FIxed some headers
authormoodler <moodler>
Mon, 1 May 2006 03:24:05 +0000 (03:24 +0000)
committermoodler <moodler>
Mon, 1 May 2006 03:24:05 +0000 (03:24 +0000)
blog/header.php

index 4f246c192e2653596c4c7a3101b7060f47b8798e..384186e75093ac3229240e44bcac46309274e734 100755 (executable)
@@ -107,19 +107,17 @@ if ($ME == $CFG->wwwroot.'/blog/edit.php') {  ///we are in edit mode, print edit
                             '<a href="index.php?filtertype=site">'. "$blogstring</a> -> $tagstring: $taginstance->text",'','',true,$PAGE->get_extra_header_string());
             } else {
                 print_header("$site->shortname: $blogstring", "$site->fullname",
-                            "$blogstring",'','',true,$PAGE->get_extra_header_string());
+                            $blogstring,'','',true,$PAGE->get_extra_header_string());
             }
         break;
 
         case 'course':
             if ($tagid || !empty($tag)) {
-                print_header("$course->shortname: $blogstring", "$course->fullname",
-                            '<a href="'.$CFG->wwwroot.'/course/view.php?id='.$filterselect.'">'.$course->shortname.'</a> ->
-                            <a href="index.php?filtertype=course&amp;filterselect='.$filterselect.'">'. "$blogstring</a> -> $tagstring: $taginstance->text",'','',true,$PAGE->get_extra_header_string());
+                print_header_simple("$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("$site->shortname: $blogstring", "$site->fullname",
-                            '<a href="'.$CFG->wwwroot.'/course/view.php?id='.$filterselect.'">'.$course->shortname."</a> ->
-                            $blogstring",'','',true,$PAGE->get_extra_header_string());
+                print_header_simple("$site->shortname: $blogstring", "$site->fullname",
+                            $blogstring,'','',true,$PAGE->get_extra_header_string());
             }
         break;
 
@@ -128,14 +126,12 @@ if ($ME == $CFG->wwwroot.'/blog/edit.php') {  ///we are in edit mode, print edit
             $thisgroup = get_record('groups', 'id', $filterselect);
 
             if ($tagid || !empty($tag)) {
-                print_header("$course->shortname: $blogstring", "$course->fullname",
-                            '<a href="'.$CFG->wwwroot.'/course/view.php?id='.$course->id.'">'.$course->shortname.'</a> ->
-                            <a href="'.$CFG->wwwroot.'/user/index.php?id='.$course->id.'&amp;group='.$filterselect.'">'.$thisgroup->name.'</a> ->
+                print_header_simple("$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("$course->shortname: $blogstring", "$course->fullname",
-                            '<a href="'.$CFG->wwwroot.'/course/view.php?id='.$course->id.'">'.$course->shortname.'</a> ->
-                            <a href="'.$CFG->wwwroot.'/user/index.php?id='.$course->id.'&amp;group='.$filterselect.'">'.$thisgroup->name."</a> ->
+                print_header_simple("$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());
 
             }