]> git.mjollnir.org Git - moodle.git/commitdiff
Fake constructor for PHP5
authorvyshane <vyshane>
Tue, 12 Sep 2006 06:58:42 +0000 (06:58 +0000)
committervyshane <vyshane>
Tue, 12 Sep 2006 06:58:42 +0000 (06:58 +0000)
lib/pdflib.php

index aabdb5453382dfc90d3d1ca4431783d5c65eb89a..40dc7df4e48cf06ebe471994d120b00d54cbf7d6 100644 (file)
@@ -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()