[-] TR : Minor changes

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15454 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
bLeveque
2012-05-19 15:26:28 +00:00
parent ba00d85c27
commit 4f7940115f
5 changed files with 8 additions and 10 deletions
+4 -6
View File
@@ -37,16 +37,15 @@ class PdfInvoiceControllerCore extends FrontController
public function postProcess()
{
$id_order = (int)Tools::getValue('id_order');
if (!$this->context->customer->isLogged() && !Tools::getValue('secure_key'))
Tools::redirect('index.php?controller=authentication&back=pdf-invoice');
if (!(int)Configuration::get('PS_INVOICE'))
die(Tools::displayError('Invoices are disabled in this shop.'));
if (isset($id_order) && Validate::isUnsignedId($id_order))
$order = new Order($id_order);
$id_order = (int)Tools::getValue('id_order');
if (Validate::isUnsignedId($id_order))
$order = new Order((int)$id_order);
if (!isset($order) || !Validate::isLoadedObject($order))
die(Tools::displayError('Invoice not found'));
@@ -84,5 +83,4 @@ class PdfInvoiceControllerCore extends FrontController
return $template;
}
}
}