Fix class naming calls
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user