Comparison

mod_invites_register_web/mod_invites_register_web.lua @ 6273:8ceedc336d0d

Merge update
author Trần H. Trung <xmpp:trần.h.trung@trung.fun>
date Sun, 01 Jun 2025 13:51:38 +0700
parent 5660:8a607be2cdcc
parent 6264:29a646bad096
comparison
equal deleted inserted replaced
6263:10a1016d1c3a 6273:8ceedc336d0d
32 module:depends("http"); 32 module:depends("http");
33 33
34 local invites = module:depends("invites"); 34 local invites = module:depends("invites");
35 local invites_page = module:depends("invites_page"); 35 local invites_page = module:depends("invites_page");
36 36
37 local templatePath = module:get_option_string("invites_template_html", "html"); 37 local template_path = module:get_option_path("invites_register_template_path", "html");
38 function template_get(sTemplate, sLang) 38 function template_get(template, lang)
39 local template = sLang and templatePath.."/"..sTemplate.."."..sLang..".html" 39 local template = lang and template_path.."/"..template.."."..lang..".html"
40 or templatePath.."/"..sTemplate..".html"; 40 or template_path.."/"..template..".html";
41 return assert(module:load_resource(template):read("*a")); 41 return assert(module:load_resource(template):read("*a"));
42 end 42 end
43 43
44 local lang = nil; 44 local lang = nil;
45 function serve_register_page(event) 45 function serve_register_page(event)