MDL-16541 - text resource portfolio implementation - send as .html since we're formatting that way

This commit is contained in:
mjollnir_
2008-10-22 10:45:05 +00:00
parent 921c07e5b1
commit 96a38422e1
+1 -1
View File
@@ -255,7 +255,7 @@ class resource_base {
}
function portfolio_prepare_package_online($exporter, $text=false) {
$filename = clean_filename($this->cm->name . '.' . (($text) ? 'txt' : 'html'));
$filename = clean_filename($this->cm->name . '.' . 'html');
$formatoptions = (object)array('noclean' => true);
$format = (($text) ? FORMAT_MOODLE : FORMAT_HTML);
$content = format_text($this->resource->alltext, $format, $formatoptions, $this->course->id);