Permalink
Browse files

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

  • Loading branch information...
1 parent 7def533 commit 3895b3459ea6a7ee5069b8b3a29e19a81b93abb0 Rossiani Wijaya committed Jan 21, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 report/outline/index.php
View
@@ -147,7 +147,8 @@
$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 = '-';
}

0 comments on commit 3895b34

Please sign in to comment.