fixed get_instance()

This commit is contained in:
2026-01-12 17:30:36 +01:00
parent 079e276231
commit a182417ef7
3 changed files with 21 additions and 31 deletions
@@ -17,15 +17,12 @@ class InvoiceSpreadsheet {
private $invoiceSheet;
private $fullpathname;
private $filename;
private $ci;
public function __construct( $invoiceReport )
{
$this->ci =& get_instance();
$this->invoiceReport = $invoiceReport;
$this->ci->load->helper( 'download' );
helper('download');
$this->handle();
}