MDL-16391 - plain text resources are now PORTFOLIO_FORMAT_TEXT.
authormjollnir_ <mjollnir_>
Tue, 9 Sep 2008 11:01:29 +0000 (11:01 +0000)
committermjollnir_ <mjollnir_>
Tue, 9 Sep 2008 11:01:29 +0000 (11:01 +0000)
mod/resource/lib.php

index e12795179275e5e460a438a5f33066edc7dc771c..a537422fcf1b71b05f12fe388d0d48b2b1f9fe6a 100644 (file)
@@ -732,6 +732,7 @@ class resource_portfolio_caller extends portfolio_module_caller_base {
             case 'file':
                 // $format = portfolio_format_from_mimetype($something); // change after we switch upload type resources over to new files api.
         }
+        $this->supportedformats = array($format);
     }
 
     public function __wakeup() {