# HG changeset patch # User Trần H. Trung # Date 1748763571 -25200 # Node ID 6cf1f47f24b4745fbf380f447eb4b009a990e600 # Parent 8ceedc336d0dfa0bbb1482ee4ebf94007066d745 mod_invites_webgen: rename variables to keep consistant style diff -r 8ceedc336d0d -r 6cf1f47f24b4 mod_invites_webgen/mod_invites_webgen.lua --- 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