PHP7 fixes - constructor must be named __construct()

This commit is contained in:
Roland Gruber 2015-12-31 14:07:31 +00:00
parent a1c2039371
commit 87627acd61
2 changed files with 16 additions and 16 deletions

View File

@ -73,7 +73,7 @@ var $PDFVersion; // PDF version number
* Public methods *
* *
*******************************************************************************/
function FPDF($orientation='P', $unit='mm', $size='A4')
function __construct($orientation='P', $unit='mm', $size='A4')
{
// Some checks
$this->_dochecks();

View File

@ -40,7 +40,7 @@ class UFPDF extends FPDF
* Public methods *
* *
*******************************************************************************/
function UFPDF($orientation='P',$unit='mm',$format='A4')
function __construct($orientation='P',$unit='mm',$format='A4')
{
FPDF::FPDF($orientation, $unit, $format);
}