diff --git a/libchart/classes/view/text/Text.php b/libchart/classes/view/text/Text.php index eacd989..8cd9bd1 100644 --- a/libchart/classes/view/text/Text.php +++ b/libchart/classes/view/text/Text.php @@ -33,7 +33,7 @@ class Text { /** * Creates a new text drawing helper. */ - public function Text() { + public function __construct() { $baseDir = dirname(__FILE__) . "/../../../"; // Free low-res fonts based on Bitstream Vera @@ -126,4 +126,4 @@ public function printDiagonal($img, $px, $py, $color, $text) { imagettftext($img, $fontSize, $angle, $px, $py, $color->getColor($img), $fontFileName, $text); } } -?> \ No newline at end of file +?>