mirror of
https://github.com/moodle/moodle.git
synced 2025-08-03 16:13:28 +02:00
MDL-37375 Report: fixed blog post link from course activity report
This commit is contained in:
parent
a5ec499521
commit
d264e5d72c
1 changed files with 2 additions and 1 deletions
|
@ -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 = '-';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue