Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
MDL-31936 workshop: Fix overall feedback content processing order
This is unrelated to the issue but was spotted while testing it. The order of
format_text() and file_rewrite_pluginfile_urls() was incorrect and threw
debugging message. Fixed now.
  • Loading branch information
mudrd8mz committed Oct 3, 2014
1 parent e04a0f6 commit 84f8b00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mod/workshop/locallib.php
Expand Up @@ -3531,10 +3531,10 @@ public function get_overall_feedback_content() {
return null;
}

$content = format_text($this->feedbackauthor, $this->feedbackauthorformat,
array('overflowdiv' => true, 'context' => $this->workshop->context));
$content = file_rewrite_pluginfile_urls($content, 'pluginfile.php', $this->workshop->context->id,
$content = file_rewrite_pluginfile_urls($this->feedbackauthor, 'pluginfile.php', $this->workshop->context->id,
'mod_workshop', 'overallfeedback_content', $this->id);
$content = format_text($content, $this->feedbackauthorformat,
array('overflowdiv' => true, 'context' => $this->workshop->context));

return $content;
}
Expand Down

0 comments on commit 84f8b00

Please sign in to comment.