From 15e333f31d3b9edc8f2adb11181d2608d880e9f2 Mon Sep 17 00:00:00 2001 From: Dale Davies Date: Sat, 12 Feb 2022 22:16:06 +0000 Subject: [PATCH] Correct sitesfile location config entry --- jumpapp/classes/Config.php | 2 +- jumpapp/classes/Sites.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jumpapp/classes/Config.php b/jumpapp/classes/Config.php index a4deb70..ccf65e6 100644 --- a/jumpapp/classes/Config.php +++ b/jumpapp/classes/Config.php @@ -25,7 +25,7 @@ class Config { 'backgroundsdir' => '/assets/backgrounds', 'defaulticonpath' => '/assets/images/default-icon.png', 'sitesdir' => '/sites', - 'sitesfile' => 'sites.json', + 'sitesfile' => '/sites/sites.json', 'templatedir' => '/templates', ]; diff --git a/jumpapp/classes/Sites.php b/jumpapp/classes/Sites.php index f7a9773..f6357f8 100644 --- a/jumpapp/classes/Sites.php +++ b/jumpapp/classes/Sites.php @@ -24,7 +24,7 @@ class Sites { public function __construct(Config $config, Cache $cache) { $this->config = $config; $this->loadedsites = []; - $this->sitesfilelocation = $this->config->get('sitesdir').'/'.$this->config->get('sitesfile'); + $this->sitesfilelocation = $this->config->get('sitesfile'); $this->cache = $cache; $this->load_sites_from_json(); }