diff --git a/blog/index.php b/blog/index.php index ebae25a4a36..d4dc1eaba24 100755 --- a/blog/index.php +++ b/blog/index.php @@ -143,7 +143,7 @@ $blogpage = optional_param('blogpage',0,PARAM_INT); blog_print_html_formatted_entries($userid, $postid, $limit, ($blogpage * $limit) ,$filtertype, $filterselect, $tagid, $tag, $filtertype, $filterselect); -add_to_log($site->id, 'blog', 'view', 'index.php?filtertype='.$filtertype.'&filterselect='.$filterselect.'&postid='.$postid.'&tagid='.$tagid.'&tag='.$tag, 'view blog entry'); +add_to_log($courseid, 'blog', 'view', 'index.php?filtertype='.$filtertype.'&filterselect='.$filterselect.'&postid='.$postid.'&tagid='.$tagid.'&tag='.$tag, 'view blog entry'); include($CFG->dirroot .'/blog/footer.php');