BUGFIX: use the new API method getFilenameWithoutID()

This commit is contained in:
Normann Lou 2012-08-01 13:23:20 +12:00
parent 09a8229ec0
commit 99435e39b7

View File

@ -596,7 +596,7 @@ class DMSDocument_Controller extends Controller {
} }
header('Content-Type: ' . $mime); header('Content-Type: ' . $mime);
header('Content-Length: ' . filesize($path), null); 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('Content-transfer-encoding: 8bit');
header('Expires: 0'); header('Expires: 0');
header('Pragma: cache'); header('Pragma: cache');