// Fix download file

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9310 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
jmCollin
2011-10-13 11:40:03 +00:00
parent 740419c6ed
commit 2e67942ba5
2 changed files with 1 additions and 1 deletions
+1
View File
@@ -200,6 +200,7 @@ class OrderDetailCore extends ObjectModel
FROM `'._DB_PREFIX_.'order_detail` od
LEFT JOIN `'._DB_PREFIX_.'product_download` pd ON (od.`product_id`=pd.`id_product`)
WHERE od.`download_hash` = \''.pSQL(strval($hash)).'\'
AND od.`product_attribute_id` = pd.`id_product_attribute`
AND pd.`active` = 1';
return Db::getInstance(_PS_USE_SQL_SLAVE_)->getRow($sql);
}
-1
View File
@@ -267,7 +267,6 @@ class GetFileControllerCore extends FrontController
$mimeType = 'application/octet-stream';
}
/* Set headers for download */
header('Content-Transfer-Encoding: binary');
header('Content-Type: '.$mimeType);