Skip to content

Commit

Permalink
Merge pull request #585 from likesistemas/fix-error-const
Browse files Browse the repository at this point in the history
Corrigindo erro constante php usando self::
  • Loading branch information
robmachado authored Nov 8, 2023
2 parents d903650 + 0753124 commit a305570
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Legacy/FPDF/Fpdf181.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function __construct($orientation = 'P', $unit = 'mm', $size = 'A4')
$this->withAlpha = false;
$this->ws = 0;

$this->fontpath = __DIR__. FPDF_FONTPATH;
$this->fontpath = __DIR__. self::FPDF_FONTPATH;

// Core fonts
$this->coreFonts = [
Expand Down Expand Up @@ -2056,7 +2056,7 @@ protected function putResources()

protected function putInfo()
{
$this->metadata['Producer'] = 'FPDF ' . FPDF_VERSION;
$this->metadata['Producer'] = 'FPDF ' . self::FPDF_VERSION;
$this->metadata['CreationDate'] = 'D:' . @date('YmdHis');
foreach ($this->metadata as $key => $value) {
$this->put('/' . $key . ' ' . $this->textString($value));
Expand Down

0 comments on commit a305570

Please sign in to comment.