From: Penny Leach Date: Mon, 4 Jan 2010 03:20:48 +0000 (+0000) Subject: portfolio MDL-21156 added a missing lang string and removed a too strict exception X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=82e8d268def2a3863cabad6254ff6a99ec67c382;p=moodle.git portfolio MDL-21156 added a missing lang string and removed a too strict exception --- diff --git a/lang/en_utf8/portfolio.php b/lang/en_utf8/portfolio.php index 42dca51ba5..088a635ac5 100644 --- a/lang/en_utf8/portfolio.php +++ b/lang/en_utf8/portfolio.php @@ -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'; diff --git a/lib/portfolio/formats.php b/lib/portfolio/formats.php index f4899561ff..a56950c188 100644 --- a/lib/portfolio/formats.php +++ b/lib/portfolio/formats.php @@ -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) {