Fix class naming calls

This commit is contained in:
Deon George
2013-03-23 07:37:04 +11:00
parent f2816dd902
commit 9d4b2f50ff
11 changed files with 10 additions and 10 deletions

View File

@@ -93,7 +93,7 @@ SELECT i.id AS iid,i.due_date AS due FROM ab_invoice i,ab_invoice_item ii WHERE
* Generate a PDF invoice
*/
public function pdf() {
$invoice_class = sprintf('Invoice_TCPDF_%s',ucfirst(Kohana::$config->load('invoice')->driver));
$invoice_class = Kohana::classname('Invoice_TCPDF_'.Kohana::$config->load('invoice')->driver);
$pdf = new $invoice_class($this->io);