diff --git a/html/Setup.php b/html/Setup.php index 3fd5939..d277a78 100644 --- a/html/Setup.php +++ b/html/Setup.php @@ -2,7 +2,7 @@ require_once("Wizard.php"); -$wizard = new Wizard(); +$wizard = new Wizard("../setupWizard.json"); $wizard->addCode('basedata',function($storedvariables){ $basedata['eventname'] = $_POST['eventname']; diff --git a/html/Wizard.php b/html/Wizard.php index 97aa9de..cdbb429 100644 --- a/html/Wizard.php +++ b/html/Wizard.php @@ -96,7 +96,7 @@ class Wizard { private array $steps = array(); private string $footer = ""; private array $storedvariables = array(); - public function __construct($json_file = 'setupWizard.json'){ + public function __construct($json_file = '../wizard.json'){ $stepsArray = json_decode(file_get_contents($json_file), true); $this->header = $stepsArray['header']; $this->firststep = $stepsArray['firststep']; diff --git a/html/setupWizard.json b/setupWizard.json similarity index 100% rename from html/setupWizard.json rename to setupWizard.json