Software / code / prosody-modules
Diff
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 |
line wrap: on
line diff
--- a/mod_invites_register_web/mod_invites_register_web.lua Sun Jun 01 11:43:16 2025 +0700 +++ b/mod_invites_register_web/mod_invites_register_web.lua Sun Jun 01 13:51:38 2025 +0700 @@ -34,10 +34,10 @@ local invites = module:depends("invites"); local invites_page = module:depends("invites_page"); -local templatePath = module:get_option_string("invites_template_html", "html"); -function template_get(sTemplate, sLang) - local template = sLang and templatePath.."/"..sTemplate.."."..sLang..".html" - or templatePath.."/"..sTemplate..".html"; +local template_path = module:get_option_path("invites_register_template_path", "html"); +function template_get(template, lang) + local template = lang and template_path.."/"..template.."."..lang..".html" + or template_path.."/"..template..".html"; return assert(module:load_resource(template):read("*a")); end