Added GET-parameter download to get SiteMgr's download module working with the new filemanager. It forces viewable mime-type to be downloaded (if set).

This commit is contained in:
Ralf Becker 2004-04-11 14:25:33 +00:00
parent 1b4b338fb9
commit 104014b4ed

View File

@ -1718,7 +1718,7 @@
}
$viewable = array('','text/plain','text/csv','text/html','text/text');
if(in_array($mime_type,$viewable))
if(in_array($mime_type,$viewable) && !$_GET['download'])
{
header('Content-type: ' . $mime_type);
header('Content-disposition: filename="' . $this->file . '"');//FIXME