From 35df3f463c222f3da103a490fcc47743fa3cc871 Mon Sep 17 00:00:00 2001 From: PhpMadman Date: Mon, 21 Oct 2013 10:10:28 +0200 Subject: [PATCH] Removed unsed code I looked through the code. And I can't see that that code is used. everything is handled in PDF class. --- controllers/front/PdfInvoiceController.php | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/controllers/front/PdfInvoiceController.php b/controllers/front/PdfInvoiceController.php index b02453342..a4d6b2429 100644 --- a/controllers/front/PdfInvoiceController.php +++ b/controllers/front/PdfInvoiceController.php @@ -63,23 +63,8 @@ class PdfInvoiceControllerCore extends FrontController $order_invoice_list = $this->order->getInvoicesCollection(); Hook::exec('actionPDFInvoiceRender', array('order_invoice_list' => $order_invoice_list)); - $pdf = new PDF($order_invoice_list, PDF::TEMPLATE_INVOICE, $this->context->smarty, $this->context->language->id); + $pdf = new PDF($order_invoice_list, PDF::TEMPLATE_INVOICE, $this->context->smarty); $pdf->render(); } - - /** - * Returns the invoice template associated to the country iso_code - * @param string $iso_user - */ - public function getTemplate($iso_country) - { - $template = _PS_THEME_PDF_DIR_.'/invoice.tpl'; - - $iso_template = _PS_THEME_PDF_DIR_.'/invoice.'.$iso_country.'.tpl'; - if (file_exists($iso_template)) - $template = $iso_template; - - return $template; - } -} \ No newline at end of file +}