Skip to content

Commit

Permalink
Add: dot to PDF-Filepath
Browse files Browse the repository at this point in the history
  • Loading branch information
maffmeier committed Feb 22, 2020
1 parent f0a2eab commit c3a79d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/WrkLst/DocxMustache/DocxMustache.php
Original file line number Diff line number Diff line change
Expand Up @@ -480,12 +480,12 @@ public function SaveAsPdf()
//wait until process is ready
}
// executes after the command finishes
if (!$process->isSuccessful()) {
if (! $process->isSuccessful()) {
throw new \Symfony\Component\Process\Exception\ProcessFailedException($process);
} else {
$path_parts = pathinfo($this->StoragePath($this->local_path.$this->template_file_name));

return $this->StoragePath($this->local_path.$path_parts['filename'].'pdf');
return $this->StoragePath($this->local_path.$path_parts['filename'].'.pdf');
}
}
}

0 comments on commit c3a79d4

Please sign in to comment.