From 93a91776f6b49010cd2c8e305aa685e7387ec9ac Mon Sep 17 00:00:00 2001 From: Rossiani Wijaya Date: Mon, 21 Jan 2013 14:57:05 +0800 Subject: [PATCH] MDL-37375 Report: fixed blog post link from course activity report --- report/outline/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/report/outline/index.php b/report/outline/index.php index 7c82e66be08..864f3567ab1 100644 --- a/report/outline/index.php +++ b/report/outline/index.php @@ -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 = '-'; }