mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'MDL-39491-workshop-media' of git://github.com/mudrd8mz/moodle
This commit is contained in:
commit
b92830664d
@ -132,9 +132,9 @@ class mod_workshop_renderer extends plugin_renderer_base {
|
||||
|
||||
$o .= $this->output->container_end(); // end of header
|
||||
|
||||
$content = format_text($submission->content, $submission->contentformat, array('overflowdiv'=>true));
|
||||
$content = file_rewrite_pluginfile_urls($content, 'pluginfile.php', $this->page->context->id,
|
||||
$content = file_rewrite_pluginfile_urls($submission->content, 'pluginfile.php', $this->page->context->id,
|
||||
'mod_workshop', 'submission_content', $submission->id);
|
||||
$content = format_text($content, $submission->contentformat, array('overflowdiv'=>true));
|
||||
if (!empty($content)) {
|
||||
if (!empty($CFG->enableplagiarism)) {
|
||||
require_once($CFG->libdir.'/plagiarismlib.php');
|
||||
@ -232,9 +232,9 @@ class mod_workshop_renderer extends plugin_renderer_base {
|
||||
$o .= $this->output->heading(format_string($example->title), 3, 'title');
|
||||
$o .= $this->output->container_end(); // end of header
|
||||
|
||||
$content = format_text($example->content, $example->contentformat, array('overflowdiv'=>true));
|
||||
$content = file_rewrite_pluginfile_urls($content, 'pluginfile.php', $this->page->context->id,
|
||||
$content = file_rewrite_pluginfile_urls($example->content, 'pluginfile.php', $this->page->context->id,
|
||||
'mod_workshop', 'submission_content', $example->id);
|
||||
$content = format_text($content, $example->contentformat, array('overflowdiv'=>true));
|
||||
$o .= $this->output->container($content, 'content');
|
||||
|
||||
$o .= $this->helper_submission_attachments($example->id, 'html');
|
||||
|
Loading…
x
Reference in New Issue
Block a user