Skip to content

Commit 82b7b34

Browse files
committed
Update PersistentState.php
1 parent bd1ded2 commit 82b7b34

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/VerifierServer/PersistentState.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function getVerifyList(): array
8585
if ($this->storageType === 'filesystem') {
8686
return isset($this->verifyList)
8787
? $this->verifyList
88-
: $this->verifyList = self::loadVerifyFile($this->json_path);
88+
: $this->verifyList = self::loadVerifyFile($this->getJsonPath());
8989
}
9090
$stmt = $this->pdo->query("SELECT * FROM verify_list");
9191
if ($stmt === false) {
@@ -154,7 +154,6 @@ public function getToken(): string
154154
*/
155155
public static function loadVerifyFile(string $json_path): ?array
156156
{
157-
$json_path = getcwd() . "$json_path";
158157
echo 'Loading JSON file from ' . ($json_path) . PHP_EOL;
159158
$directory = dirname($json_path);
160159
if (!is_dir($directory)) {
@@ -255,6 +254,6 @@ public static function writeJson(string $file, $data): void
255254
*/
256255
public function getJsonPath(): string
257256
{
258-
return $this->json_path;
257+
return getcwd() . $this->json_path;
259258
}
260259
}

0 commit comments

Comments
 (0)