From 96a38422e1f769ec4fd47b5f7a47cb2be9125103 Mon Sep 17 00:00:00 2001 From: mjollnir_ Date: Wed, 22 Oct 2008 10:45:05 +0000 Subject: [PATCH] MDL-16541 - text resource portfolio implementation - send as .html since we're formatting that way --- mod/resource/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5