mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 10:56:56 +02:00
MDL-81574 mod_forum: Fix deprecated usage of format_text
This commit is contained in:
parent
8cf14f6e70
commit
603a648d0a
1 changed files with 2 additions and 1 deletions
|
@ -309,8 +309,9 @@ class forum_portfolio_caller extends portfolio_module_caller_base {
|
|||
$viewfullnames = true;
|
||||
// format the post body
|
||||
$options = portfolio_format_text_options();
|
||||
$options->context = $this->modcontext;
|
||||
$format = $this->get('exporter')->get('format');
|
||||
$formattedtext = format_text($post->message, $post->messageformat, $options, $this->get('course')->id);
|
||||
$formattedtext = format_text($post->message, $post->messageformat, $options);
|
||||
$formattedtext = portfolio_rewrite_pluginfile_urls($formattedtext, $this->modcontext->id, 'mod_forum', 'post', $post->id, $format);
|
||||
|
||||
$output = '<table border="0" cellpadding="3" cellspacing="0" class="forumpost">';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue