Skip to content

Commit 059a43d

Browse files
Fix path handling (#1131)
* Update cron.php * Update data.php
1 parent 09b07bb commit 059a43d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎backend/cron.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use IntruderAlert\Exception\ConfigException;
99
use IntruderAlert\Exception\AppException;
1010

11-
require 'vendor/autoload.php';
11+
require(__DIR__ . '/vendor/autoload.php');
1212

1313
Output::text('Starting intruder alert task...');
1414

‎frontend/data.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use IntruderAlert\Exception\ConfigException;
77
use IntruderAlert\Helper\Json;
88

9-
require 'backend/vendor/autoload.php';
9+
require(dirname(__DIR__) . '/backend/vendor/autoload.php');
1010

1111
$data = '';
1212

0 commit comments

Comments
 (0)