MDL-28592 blocks: changing the arguments to moodle_url::out()
authorAnkit Agarwal <ankit@moodle.com>
Tue, 20 Mar 2012 02:57:12 +0000 (10:57 +0800)
committerAnkit Agarwal <ankit@moodle.com>
Tue, 20 Mar 2012 02:57:12 +0000 (10:57 +0800)
comment/lib.php

index dfb685f..d770e16 100644 (file)
@@ -514,7 +514,7 @@ class comment {
             $c->format      = $u->cformat;
             $c->timecreated = $u->ctimecreated;
             $url = new moodle_url('/user/view.php', array('id'=>$u->id, 'course'=>$this->courseid));
-            $c->profileurl = $url;
+            $c->profileurl = $url->out(false);
             $c->fullname = fullname($u);
             $c->time = userdate($c->timecreated, get_string('strftimerecent', 'langconfig'));
             $c->content = format_text($c->content, $c->format, $formatoptions);