MDL-37375 Report: fixed blog post link from course activity report

This commit is contained in:
Rossiani Wijaya
2013-01-21 14:57:05 +08:00
parent e61f96c55b
commit 93a91776f6
+2 -1
View File
@@ -148,7 +148,8 @@ foreach ($modinfo->sections as $sectionnum=>$section) {
$blogcell = new html_table_cell();
$blogcell->attributes['class'] = 'blog';
if ($blogcount = blog_get_associated_count($course->id, $cm->id)) {
$blogcell->text = html_writer::link('/blog/index.php?modid='.$cm->id, $blogcount);
$blogurl = new moodle_url('/blog/index.php', array('modid' => $cm->id));
$blogcell->text = html_writer::link($blogurl, $blogcount);
} else {
$blogcell->text = '-';
}