Merge branch 'MDL-37375_m24' of git://github.com/rwijaya/moodle into MOODLE_24_STABLE

This commit is contained in:
Dan Poltawski
2013-01-22 12:43:55 +08:00
+2 -1
View File
@@ -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 = '-';
}