Correct sitesfile location config entry

This commit is contained in:
Dale Davies
2022-02-12 22:16:06 +00:00
parent 28db59cfc1
commit 15e333f31d
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -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();
}