Permalink
Browse files

MDL-36591 Assignment - rewrite image urls in online text summaries

  • Loading branch information...
1 parent 4832c70 commit 9242214612100991e537d9623549c458dbba63ca @damyon damyon committed with danpoltawski Nov 28, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 mod/assign/submission/onlinetext/locallib.php
@@ -226,7 +226,12 @@ public function view_summary(stdClass $submission, & $showviewlink) {
$showviewlink = true;
if ($onlinetextsubmission) {
- $text = format_text($onlinetextsubmission->onlinetext, $onlinetextsubmission->onlineformat, array('context'=>$this->assignment->get_context()));
+ $text = $this->assignment->render_editor_content(ASSIGNSUBMISSION_ONLINETEXT_FILEAREA,
+ $onlinetextsubmission->submission,
+ $this->get_type(),
+ 'onlinetext',
+ 'assignsubmission_onlinetext');
+
$shorttext = shorten_text($text, 140);
$plagiarismlinks = '';
if (!empty($CFG->enableplagiarism)) {

0 comments on commit 9242214

Please sign in to comment.