PHP7 fixes - constructor must be named __construct()

This commit is contained in:
Roland Gruber 2016-01-01 18:21:59 +00:00
parent 758bc8dd5f
commit 8ef6848477
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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)