From 93b7e8d3a7bd762cacf94a704a5f1f666888243c Mon Sep 17 00:00:00 2001 From: vyshane Date: Tue, 12 Sep 2006 06:58:42 +0000 Subject: [PATCH] Fake constructor for PHP5 --- lib/pdflib.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/pdflib.php b/lib/pdflib.php index aabdb54533..40dc7df4e4 100644 --- a/lib/pdflib.php +++ b/lib/pdflib.php @@ -92,6 +92,14 @@ class pdf extends TCPDF { } + /** + * Fake constructor to keep PHP5 happy. + */ + function __construct($orientation='P', $unit='mm', $format='A4', $unicode=true, $encoding='UTF-8') { + $this->pdf($orientation='P', $unit='mm', $format='A4', $unicode=true, $encoding='UTF-8'); + } + + /** * Return fonts path * Overriding TCPDF::_getfontpath() -- 2.39.5