changeset 3063:a9fa98e28697

mod_http_muc_log: Use separate variable for filename and file handle
author Kim Alvefur <zash@zash.se>
date Mon, 28 May 2018 20:55:22 +0200
parents 37a78e365b46
children ce61f1826f1f
files mod_http_muc_log/mod_http_muc_log.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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