From: mjollnir_ Date: Wed, 22 Oct 2008 10:45:05 +0000 (+0000) Subject: MDL-16541 - text resource portfolio implementation - send as .html since we're format... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=96a38422e1f769ec4fd47b5f7a47cb2be9125103;p=moodle.git MDL-16541 - text resource portfolio implementation - send as .html since we're formatting that way --- diff --git a/mod/resource/lib.php b/mod/resource/lib.php index 8c0285b287..8ed7f602ec 100644 --- a/mod/resource/lib.php +++ b/mod/resource/lib.php @@ -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);