Skip to content

Commit

Permalink
Fix QR generator
Browse files Browse the repository at this point in the history
* fix mkdir()
  • Loading branch information
ikhsan3adi committed Aug 5, 2023
1 parent 5bc8d72 commit 049487d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Controllers/Admin/QRGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class QRGenerator extends BaseController

public function __construct()
{
$this->relativePath = __DIR__ . '../../../../';
$this->relativePath = ROOTPATH . '/';
$this->qrCodeFilePath = 'public/uploads/';

if (!file_exists($this->relativePath . $this->qrCodeFilePath)) {
Expand Down

0 comments on commit 049487d

Please sign in to comment.