Skip to content

Commit

Permalink
Constant expression support was added in PHP 5.6.0 (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazsaj authored and David Wilcock committed Sep 30, 2016
1 parent 3296a8c commit 46747a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tFPDF/PDF.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 46747a3

Please sign in to comment.