Software / code / prosody-modules
Changeset
6274:6cf1f47f24b4
mod_invites_webgen: rename variables to keep consistant style
| author | Trần H. Trung <xmpp:trần.h.trung@trung.fun> |
|---|---|
| date | Sun, 01 Jun 2025 14:39:31 +0700 |
| parents | 6273:8ceedc336d0d |
| children | 6275:274784e262db |
| files | mod_invites_webgen/mod_invites_webgen.lua |
| diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_invites_webgen/mod_invites_webgen.lua Sun Jun 01 13:51:38 2025 +0700 +++ b/mod_invites_webgen/mod_invites_webgen.lua Sun Jun 01 14:39:31 2025 +0700 @@ -10,12 +10,11 @@ local site_name = module:get_option_string("site_name", module.host); local invites = module:depends("invites"); ---local template_get = module:depends("invites_page").template_get; -local templatePath = module:get_option_string("invites_template_html", "html"); +local template_path = module:get_option_string("invites_webgen_template_path", "html"); function template_get(filename, lang) - local template = lang and templatePath.."/"..filename.."."..lang..".html" - or templatePath.."/"..filename..".html"; + local template = lang and template_path.."/"..filename.."."..lang..".html" + or template_path.."/"..filename..".html"; return assert(module:load_resource(template):read("*a")); end