// Fixed #PSCFI-5259 #PSCFI-3869 on PS 1.5

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14423 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
bMancone
2012-04-03 13:20:45 +00:00
parent 361dbcbb38
commit 50ed231470
2 changed files with 6 additions and 1 deletions

View File

@@ -87,6 +87,10 @@ class GetFileControllerCore extends FrontController
if (!file_exists(_PS_DOWNLOAD_DIR_.$filename))
$this->displayCustomError('This file no longer exists.');
if (isset($info['product_quantity_refunded']) && isset($info['product_quantity_return']) &&
($info['product_quantity_refunded'] > 0 || $info['product_quantity_return']))
$this->displayCustomError('This product has been refunded.');
$now = time();
$product_deadline = strtotime($info['download_deadline']);
@@ -291,6 +295,7 @@ class GetFileControllerCore extends FrontController
'This product does not exist in our store.' => Tools::displayError('This product does not exist in our store.'),
'This product has been deleted.' => Tools::displayError('This product has been deleted.'),
'This file no longer exists.' => Tools::displayError('This file no longer exists.'),
'This product has been refunded.' => Tools::displayError('This product has been refunded.'),
'The product deadline is in the past.' => Tools::displayError('The product deadline is in the past.'),
'Expiration date exceeded' => Tools::displayError('Expiration date exceeded'),
'You have reached the maximum number of allowed downloads.' => Tools::displayError('You have reached the maximum number of allowed downloads.'));