Skip to content

Commit 0303b17

Browse files
committed
Fix path to license textfile
1 parent bb48598 commit 0303b17

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Controllers/Community/Legal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
class Legal extends \BNETDocs\Controllers\Base
1010
{
11-
public const LICENSE_FILE = '../LICENSE.txt';
11+
public const LICENSE_FILE = __DIR__ . '/../../../LICENSE.txt';
1212

1313
/**
1414
* Constructs a Controller, typically to initialize properties.

src/Libraries/Core/VersionInfo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ private static function reflectVersion(): ?array
9494
$identifier = shell_exec('git describe --always --tags');
9595
$hash = shell_exec('git rev-parse HEAD');
9696
$timestamp = shell_exec('git log -n 1 --pretty=\'%aI\' HEAD');
97-
$license = shell_exec('git log -n 1 --pretty=\'%h %aI\' ../LICENSE.txt');
97+
$license = shell_exec('git log -n 1 --pretty=\'%h %aI\' ../../LICENSE.txt');
9898

9999
if (!empty($identifier)) $values[0] = trim($identifier);
100100
if (!empty($hash)) $values[1] = trim($hash);

0 commit comments

Comments
 (0)