]> git.mjollnir.org Git - moodle.git/commitdiff
portfolio MDL-21156 added a missing lang string and removed a too strict exception
authorPenny Leach <penny@liip.ch>
Mon, 4 Jan 2010 03:20:48 +0000 (03:20 +0000)
committerPenny Leach <penny@liip.ch>
Mon, 4 Jan 2010 03:20:48 +0000 (03:20 +0000)
lang/en_utf8/portfolio.php
lib/portfolio/formats.php

index 42dca51ba5c43714408f0cb03f1173a0c710a1c0..088a635ac562382a5b3cd23e01e3ed12a534ce3c 100644 (file)
@@ -44,6 +44,7 @@ $string['failedtosendpackage'] = 'Failed to send your data to the selected portf
 $string['failedtopackage'] = 'Could not find files to package';
 $string['filedenied'] = 'Access denied to this file';
 $string['filenotfound'] = 'File not found';
+$string['fileoutputnotsupported'] = 'Rewriting file output is not supported for this format';
 $string['format_document'] = 'Document';
 $string['format_file'] = 'File';
 $string['format_richhtml'] = 'HTML with attachments';
index f4899561ff8b72219825e57d8b5c27f034780056..a56950c1883788bbbae1c1a107aeb8bfa1ba9a9a 100644 (file)
@@ -122,7 +122,7 @@ class portfolio_format_file extends portfolio_format {
     }
 
     public static function get_file_directory() {
-        throw new portfolio_exception('fileoutputnotsupported', 'portfolio');
+        return false;
     }
 
     public static function file_output($file, $options=null) {