mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merge branch 'MDL-55499-master' of git://github.com/andrewnicols/moodle
This commit is contained in:
commit
fc96fac29e
1 changed files with 3 additions and 1 deletions
|
@ -55,11 +55,13 @@ class renderer extends \mod_forum_renderer {
|
|||
* @return string
|
||||
*/
|
||||
public function format_message_text($cm, $post) {
|
||||
$context = \context_module::instance($cm->id);
|
||||
$message = file_rewrite_pluginfile_urls($post->message, 'pluginfile.php',
|
||||
\context_module::instance($cm->id)->id,
|
||||
$context->id,
|
||||
'mod_forum', 'post', $post->id);
|
||||
$options = new \stdClass();
|
||||
$options->para = true;
|
||||
$options->context = $context;
|
||||
return format_text($message, $post->messageformat, $options);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue