From 8cb62d5a591f3d5b2b2def57688775cea9de11f5 Mon Sep 17 00:00:00 2001 From: Kayou Date: Tue, 16 Jun 2020 10:29:52 +0200 Subject: [PATCH] remove absolute path --- access.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/access.lua b/access.lua index a7d3034..0bd923e 100644 --- a/access.lua +++ b/access.lua @@ -297,10 +297,7 @@ function serveYnhpanel() serveAsset("/ynh_portal.js", "js/ynh_portal.js") serveAsset("/ynh_overlay.css", "css/ynh_overlay.css") -- serve theme's files - -- FIXME? I think it would be better here not to use an absolute path - -- but I didn't succeed to figure out where is the current location of the script - -- if you call it from "portal/assets/themes/" the ls fails - scandir("/usr/share/ssowat/portal/assets/themes/"..conf.theme, serveThemeFile) + scandir("themes/"..conf.theme, serveThemeFile) end --