# HG changeset patch # User Kim Alvefur # Date 1527533722 -7200 # Node ID a9fa98e28697848a908c34b58edda136a6bb7ffe # Parent 37a78e365b462ddaeb8fc1b1cb40e49719d08fd4 mod_http_muc_log: Use separate variable for filename and file handle diff -r 37a78e365b46 -r a9fa98e28697 mod_http_muc_log/mod_http_muc_log.lua --- 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