Move setupWizard.json one directory down

This commit is contained in:
Florian Pesth 2024-02-04 05:51:10 +01:00
parent 5b890b4697
commit c930b75071
3 changed files with 2 additions and 2 deletions

View File

@ -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'];

View File

@ -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'];