From 46747a3794dff67c3bd707fb1817891dac49606a Mon Sep 17 00:00:00 2001 From: kazsaj Date: Fri, 30 Sep 2016 11:49:01 +0100 Subject: [PATCH] Constant expression support was added in PHP 5.6.0 (#6) --- src/tFPDF/PDF.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tFPDF/PDF.php b/src/tFPDF/PDF.php index 55d0961..2d71530 100755 --- a/src/tFPDF/PDF.php +++ b/src/tFPDF/PDF.php @@ -203,7 +203,7 @@ class PDF * * @var string */ - protected $str_font_path = __DIR__ . '/../font/'; + protected $str_font_path = ''; /** * The path that we use to write the fonts to @@ -450,6 +450,7 @@ class PDF */ public function __construct($str_orientation = 'P', $str_units = 'mm', $str_size = 'A4') { + $this->str_font_path = __DIR__ . '/../font/'; if (defined('FPDF_FONTPATH')) { $this->str_font_path = FPDF_FONTPATH;