Merge branch 'MDL-37375' of git://github.com/rwijaya/moodle
authorDan Poltawski <dan@moodle.com>
Tue, 22 Jan 2013 04:43:47 +0000 (12:43 +0800)
committerDan Poltawski <dan@moodle.com>
Tue, 22 Jan 2013 04:43:47 +0000 (12:43 +0800)
report/outline/index.php

index 2181664..592c60b 100644 (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 = '-';
             }