mirror of
https://github.com/moodle/moodle.git
synced 2025-04-11 11:23:52 +02:00
Merge branch 'MDL-38099-master' of https://github.com/lucaboesch/moodle
This commit is contained in:
commit
b1e5899c25
@ -577,7 +577,7 @@ class comment {
|
||||
$c->content = $u->ccontent;
|
||||
$c->format = $u->cformat;
|
||||
$c->timecreated = $u->ctimecreated;
|
||||
$c->strftimeformat = get_string('strftimerecent', 'langconfig');
|
||||
$c->strftimeformat = get_string('strftimerecentfull', 'langconfig');
|
||||
$url = new moodle_url('/user/view.php', array('id'=>$u->id, 'course'=>$this->courseid));
|
||||
$c->profileurl = $url->out(false); // URL should not be escaped just yet.
|
||||
$c->fullname = fullname($u);
|
||||
@ -712,7 +712,7 @@ class comment {
|
||||
$cmt_id = $DB->insert_record('comments', $newcmt);
|
||||
if (!empty($cmt_id)) {
|
||||
$newcmt->id = $cmt_id;
|
||||
$newcmt->strftimeformat = get_string('strftimerecent', 'langconfig');
|
||||
$newcmt->strftimeformat = get_string('strftimerecentfull', 'langconfig');
|
||||
$newcmt->fullname = fullname($USER);
|
||||
$url = new moodle_url('/user/view.php', array('id' => $USER->id, 'course' => $this->courseid));
|
||||
$newcmt->profileurl = $url->out();
|
||||
|
Loading…
x
Reference in New Issue
Block a user