summaryrefslogtreecommitdiff
path: root/htdocs/public/archive
diff options
context:
space:
mode:
Diffstat (limited to 'htdocs/public/archive')
-rw-r--r--htdocs/public/archive/index.ejs4
1 files changed, 2 insertions, 2 deletions
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;