mod_http_muc_log/mod_http_muc_log.lua
changeset 3067 a9fa98e28697
parent 3066 37a78e365b46
child 3068 ce61f1826f1f
--- a/mod_http_muc_log/mod_http_muc_log.lua	Mon May 28 20:36:42 2018 +0200
+++ b/mod_http_muc_log/mod_http_muc_log.lua	Mon May 28 20:55:22 2018 +0200
@@ -31,8 +31,8 @@
 
 local template;
 do
-	local template_file = module:get_option_string(module.name .. "_template", module.name .. ".html");
-	template_file = assert(module:load_resource(template_file));
+	local template_filename = module:get_option_string(module.name .. "_template", module.name .. ".html");
+	local template_file = assert(module:load_resource(template_filename));
 	template = template_file:read("*a");
 	template_file:close();
 end