Skip to content

Commit 37d0e8f

Browse files
committed
Fixed #2
1 parent 4affa69 commit 37d0e8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

freja.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function __construct($certificate,$password,$production=false){
2626
$this->serviceUrl = 'https://services.test.frejaeid.com';
2727
$this->resourceUrl = 'https://resources.test.frejaeid.com';
2828

29-
if (!is_readable(getcwd()."/freja_test.pem"))
29+
if (!is_readable(__DIR__."/freja_test.pem"))
3030
throw new Exception('JWS Certificate file could not be found ('.__DIR__.'/freja_test.pem)');
3131
else
3232
$this->jwsCert = file_get_contents(__DIR__."/freja_test.pem");

0 commit comments

Comments
 (0)