Fixed PHP5 constructor for pdf which was overwriting values MDL-13207

This commit is contained in:
moodler
2008-01-28 05:25:49 +00:00
parent 802f6e34d7
commit 098a26f514
+2 -2
View File
@@ -96,7 +96,7 @@ 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');
$this->pdf($orientation, $unit, $format, $unicode, $encoding);
}
@@ -136,4 +136,4 @@ class pdf extends TCPDF {
} // End class pdf
?>
?>