Diff

mod_invites_webgen/mod_invites_webgen.lua @ 5944:d073ada49a86

mod_invites_webgen: fix variable name for http path
author Trần H. Trung <xmpp:trần.h.trung@trung.fun>
date Wed, 26 Feb 2025 18:47:07 +0700
parent 5943:05125c29fd67
line wrap: on
line diff
--- a/mod_invites_webgen/mod_invites_webgen.lua	Wed Feb 26 17:36:14 2025 +0700
+++ b/mod_invites_webgen/mod_invites_webgen.lua	Wed Feb 26 18:47:07 2025 +0700
@@ -47,12 +47,12 @@
 	event.response.headers["Content-Type"] = "text/html; charset=utf-8";
 
 	local webgen_template = template_get("webgen", lang);
-	local htmlPath = module:http_url("webgen", "/webgen");
+	local http_path = module:http_url("webgen", "/webgen");
 
 	if not username or #username == 0 or not password or #password == 0 then
 		return render_html_template(webgen_template, {
 			site_name = site_name;
-			path = htmlPath;
+			path = http_path;
 			msg_class = "alert-warning";
 			message = "Please fill in all fields.";
 		});
@@ -70,7 +70,7 @@
 	else
 		return render_html_template(webgen_template, {
 			site_name = site_name;
-			path = htmlPath;
+			path = http_path;
 			username = username;
 			msg_class = "alert-warning";
 			message = "Invalid input!";