From 82e8d268def2a3863cabad6254ff6a99ec67c382 Mon Sep 17 00:00:00 2001
From: Penny Leach <penny@liip.ch>
Date: Mon, 4 Jan 2010 03:20:48 +0000
Subject: [PATCH] portfolio MDL-21156  added a missing lang string and removed
 a too strict exception

---
 lang/en_utf8/portfolio.php | 1 +
 lib/portfolio/formats.php  | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

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) {
-- 
2.39.5