From 4c6643d10bbc2fc5699eb448b0396f46eb827d08 Mon Sep 17 00:00:00 2001 From: kastaldi Date: Tue, 8 Jan 2019 20:51:46 +0100 Subject: [PATCH] Class modified for PHP 7 compatibility --- libchart/classes/view/text/Text.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +?>