From 99435e39b71cee56adb0386eb8d3f7bfabe9ae71 Mon Sep 17 00:00:00 2001 From: Normann Lou Date: Wed, 1 Aug 2012 13:23:20 +1200 Subject: [PATCH] BUGFIX: use the new API method getFilenameWithoutID() --- code/DMSDocument.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/DMSDocument.php b/code/DMSDocument.php index 72d83d2..5aff1ce 100644 --- a/code/DMSDocument.php +++ b/code/DMSDocument.php @@ -596,7 +596,7 @@ class DMSDocument_Controller extends Controller { } header('Content-Type: ' . $mime); header('Content-Length: ' . filesize($path), null); - if (!empty($mime) && $mime != "text/html") header('Content-Disposition: attachment; filename="'.$doc->filenameWithoutID().'"'); + if (!empty($mime) && $mime != "text/html") header('Content-Disposition: attachment; filename="'.$doc->getFilenameWithoutID().'"'); header('Content-transfer-encoding: 8bit'); header('Expires: 0'); header('Pragma: cache');