Skip to content

Commit

Permalink
Merge branch 'w18_MDL-32640_m23_forumstrict' of git://github.com/skod…
Browse files Browse the repository at this point in the history
…ak/moodle
  • Loading branch information
Sam Hemelryk committed May 1, 2012
2 parents ea7cc40 + fffd370 commit 4bbefa1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mod/forum/post.php
Expand Up @@ -515,6 +515,7 @@
//load data into form NOW!

if ($USER->id != $post->userid) { // Not the original author, so add a message to the end
$data = new stdClass();
$data->date = userdate($post->modified);
if ($post->messageformat == FORMAT_HTML) {
$data->name = '<a href="'.$CFG->wwwroot.'/user/view.php?id='.$USER->id.'&course='.$post->course.'">'.
Expand All @@ -524,6 +525,7 @@
$data->name = fullname($USER);
$post->message .= "\n\n(".get_string('editedby', 'forum', $data).')';
}
unset($data);
}

if (!empty($parent)) {
Expand Down

0 comments on commit 4bbefa1

Please sign in to comment.