diff --git a/lam/lib/lamPDF.inc b/lam/lib/lamPDF.inc index 5301e664..de0157d8 100644 --- a/lam/lib/lamPDF.inc +++ b/lam/lib/lamPDF.inc @@ -70,7 +70,7 @@ class lamPDF extends UFPDF { define('FPDF_FONTPATH', dirname(__FILE__) . '/font/'); } // Call constructor of superclass - $this->FPDF('P','mm','A4'); + parent::__construct('P','mm','A4'); $this->page_definitions = $page_definitions; diff --git a/lam/lib/ufpdf.php b/lam/lib/ufpdf.php index c5f305a3..598bf706 100644 --- a/lam/lib/ufpdf.php +++ b/lam/lib/ufpdf.php @@ -42,7 +42,7 @@ class UFPDF extends FPDF *******************************************************************************/ function __construct($orientation='P',$unit='mm',$format='A4') { - FPDF::FPDF($orientation, $unit, $format); + parent::__construct($orientation, $unit, $format); } function GetStringWidth($s)