More little fixes to links and headers

This commit is contained in:
moodler 2006-05-01 03:30:55 +00:00
parent 44fdf0f301
commit b0bc8e3008
2 changed files with 5 additions and 5 deletions

View File

@ -103,20 +103,20 @@ if ($ME == $CFG->wwwroot.'/blog/edit.php') { /// We are in edit mode, print the
switch ($filtertype) {
case 'site':
if ($tagid || !empty($tag)) {
print_header("$site->shortname: $blogstring", "$site->fullname",
print_header("$site->shortname: $blogstring", "",
'<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",
print_header("$site->shortname: $blogstring", "",
$blogstring,'','',true,$PAGE->get_extra_header_string());
}
break;
case 'course':
if ($tagid || !empty($tag)) {
print_header_simple("$course->shortname: $blogstring", "$course->fullname",
print_header_simple("$course->shortname: $blogstring", "",
'<a href="index.php?filtertype=course&amp;filterselect='.$filterselect.'">'. "$blogstring</a> -> $tagstring: $taginstance->text",'','',true,$PAGE->get_extra_header_string());
} else {
print_header_simple("$site->shortname: $blogstring", "$site->fullname",
print_header_simple("$course->shortname: $blogstring", "",
$blogstring,'','',true,$PAGE->get_extra_header_string());
}
break;

View File

@ -228,7 +228,7 @@
print_string('tags');
echo ': ';
foreach ($blogtags as $key => $blogtag) {
$taglist[] = '<a href="index.php?courseid='.$course->id.'&amp;filtertype='.$filtertype.'&amp;filterselect='.$filterselect.'&amp;tagid='.$blogtag->id.'">'.$blogtag->text.'</a>';
$taglist[] = '<a href="index.php?filtertype='.$filtertype.'&amp;filterselect='.$filterselect.'&amp;tagid='.$blogtag->id.'">'.$blogtag->text.'</a>';
}
echo implode(', ', $taglist);
}