From 8ef6848477633788eaff23bd21966ebcfe66e817 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Fri, 1 Jan 2016 18:21:59 +0000 Subject: [PATCH] PHP7 fixes - constructor must be named __construct() --- lam/lib/lamPDF.inc | 2 +- lam/lib/ufpdf.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)