MDL-22950 adding new component column to the files table, unfortunately this change requires changes in all 2.0dev code, please review all custom code that was already upgraded to 2.0; fixing multiple problems and regressions in mod/assignment
This commit is contained in:
@@ -95,7 +95,7 @@
|
||||
echo '<div class="summary">';
|
||||
|
||||
$coursecontext = get_context_instance(CONTEXT_COURSE, $course->id);
|
||||
$summarytext = file_rewrite_pluginfile_urls($thissection->summary, 'pluginfile.php', $coursecontext->id, 'course_section', $thissection->id);
|
||||
$summarytext = file_rewrite_pluginfile_urls($thissection->summary, 'pluginfile.php', $coursecontext->id, 'course', 'section', $thissection->id);
|
||||
$summaryformatoptions = new object();
|
||||
$summaryformatoptions->noclean = true;
|
||||
echo format_text($summarytext, $thissection->summaryformat, $summaryformatoptions);
|
||||
@@ -225,7 +225,7 @@
|
||||
}
|
||||
echo '<div class="summary">';
|
||||
$coursecontext = get_context_instance(CONTEXT_COURSE, $course->id);
|
||||
$summarytext = file_rewrite_pluginfile_urls($thissection->summary, 'pluginfile.php', $coursecontext->id, 'course_section', $thissection->id);
|
||||
$summarytext = file_rewrite_pluginfile_urls($thissection->summary, 'pluginfile.php', $coursecontext->id, 'course', 'section', $thissection->id);
|
||||
$summaryformatoptions = new object();
|
||||
$summaryformatoptions->noclean = true;
|
||||
echo format_text($summarytext, $thissection->summaryformat, $summaryformatoptions);
|
||||
|
||||
Reference in New Issue
Block a user