// Fix PrestaShopException typo

This commit is contained in:
rMalie
2012-01-05 09:47:13 +00:00
parent 2194d1c196
commit 76bdb3fff3
+2 -2
View File
@@ -129,7 +129,7 @@ function generateDeliverySlipPDFByIdOrder($id_order)
{ {
$order = new Order($id_order); $order = new Order($id_order);
if (!Validate::isLoadedObject($order)) if (!Validate::isLoadedObject($order))
throw new PrestashopException('Can\'t load Order object'); throw new PrestaShopException('Can\'t load Order object');
$order_invoice_collection = $order->getInvoicesCollection(); $order_invoice_collection = $order->getInvoicesCollection();
generatePDF($order_invoice_collection, PDF::TEMPLATE_DELIVERY_SLIP); generatePDF($order_invoice_collection, PDF::TEMPLATE_DELIVERY_SLIP);
@@ -139,7 +139,7 @@ function generateDeliverySlipPDFByIdOrderInvoice($id_order_invoice)
{ {
$order_invoice = new OrderInvoice($id_order_invoice); $order_invoice = new OrderInvoice($id_order_invoice);
if (!Validate::isLoadedObject($order_invoice)) if (!Validate::isLoadedObject($order_invoice))
throw new PrestashopException('Can\'t load Order Invoice object'); throw new PrestaShopException('Can\'t load Order Invoice object');
generatePDF($order_invoice, PDF::TEMPLATE_DELIVERY_SLIP); generatePDF($order_invoice, PDF::TEMPLATE_DELIVERY_SLIP);
} }