Skip to content

Commit d7e4fe8

Browse files
ProjectData: fix include, use dirname instead of relative path.
1 parent 50fac69 commit d7e4fe8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ProjectData/ProjectData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class ProjectData
2626
*/
2727
public function __construct($projectDataJson)
2828
{
29-
$this->CONFIG = include "../Config/Config.php";
29+
$this->CONFIG = include dirname(__FILE__) . '/../Config/Config.php';
3030
$this->generator = $this->CONFIG['HTTP_DEFAULT_OPTIONS']['headers']['User-Agent'];
3131
$this->patchProperties = [];
3232
$this->projectDataJson = $this->objectToArray($projectDataJson);

0 commit comments

Comments
 (0)