From: vyshane Date: Tue, 12 Sep 2006 06:58:42 +0000 (+0000) Subject: Fake constructor for PHP5 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=93b7e8d3a7bd762cacf94a704a5f1f666888243c;p=moodle.git Fake constructor for PHP5 --- 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()