PHP7 fixes - constructor must be named __construct()
This commit is contained in:
		
							parent
							
								
									758bc8dd5f
								
							
						
					
					
						commit
						8ef6848477
					
				|  | @ -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; | ||||
| 
 | ||||
|  |  | |||
|  | @ -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) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue