diff --git a/report/outline/index.php b/report/outline/index.php index a4144b1624f..8edc9b4163b 100644 --- a/report/outline/index.php +++ b/report/outline/index.php @@ -147,7 +147,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 = '-'; }