Permalink
Browse files

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

  • Loading branch information...
Rossiani Wijaya
Rossiani Wijaya committed Jan 21, 2013
1 parent a5ec499 commit d264e5d72caf1993950ffb46fd408ac5c2a0d2c3
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 d264e5d

Please sign in to comment.