From 258ee23221a98918b44eff59c46d3da7ca6c27ad Mon Sep 17 00:00:00 2001 From: Minteck Date: Sun, 9 Jan 2022 09:45:56 +0100 Subject: Update --- htdocs/public/archive/index.ejs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'htdocs/public/archive/index.ejs') diff --git a/htdocs/public/archive/index.ejs b/htdocs/public/archive/index.ejs index 8d5ca25..016d920 100644 --- a/htdocs/public/archive/index.ejs +++ b/htdocs/public/archive/index.ejs @@ -11,10 +11,10 @@ <% const monthNames = lang.archives.months; archives = []; - for (let archive of fs.readdirSync(serverRoot + "/data/archives")) { + for (let archive of fs.readdirSync(serverRoot + "/htdocs/data/archives")) { data = {}; if (archive.endsWith(".json")) { - json = JSON.parse(fs.readFileSync(serverRoot + "/data/archives/" + archive).toString()) + json = JSON.parse(fs.readFileSync(serverRoot + "/htdocs/data/archives/" + archive).toString()) data.id = archive.substr(0, archive.length - 5); data.name = json.title; -- cgit