changeset 6323:6216d85162dc

mod_invites_register_web: Fix loading resources from relative paths Both module:get_option_path and module:load_resource makes the path relative to the plugin resource directory, so when running form a source checkout where this path is relative, the path was expanded relative to itself, becoming duplicated.
author Kim Alvefur <zash@zash.se>
date Sat, 06 Sep 2025 20:57:57 +0200
parents f110bce35630
children a41d5d511948
files mod_invites_register_web/mod_invites_register_web.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_invites_register_web/mod_invites_register_web.lua	Sat Sep 06 21:02:26 2025 +0200
+++ b/mod_invites_register_web/mod_invites_register_web.lua	Sat Sep 06 20:57:57 2025 +0200
@@ -34,7 +34,7 @@
 local invites = module:depends("invites");
 local invites_page = module:depends("invites_page");
 
-local template_path = module:get_option_path("invites_register_template_path", "html");
+local template_path = module:get_option_string("invites_register_template_path", "html");
 function serve_register_page(event)
 	local register_page_template = assert(module:load_resource(template_path .. "/register.html")):read("*a");