Software /
code /
prosody-modules
Comparison
mod_http_muc_log/mod_http_muc_log.lua @ 3283:97b8b07ae1d1
mod_http_muc_log: Close unclosed <p/> tag in template.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 25 Aug 2018 17:39:41 +0200 |
parent | 3066:cefc375d0929 |
child | 3485:181561d0aae5 |
comparison
equal
deleted
inserted
replaced
3282:9346ed926842 | 3283:97b8b07ae1d1 |
---|---|
37 template, err = template_file:read("*a"); | 37 template, err = template_file:read("*a"); |
38 template_file:close(); | 38 template_file:close(); |
39 end | 39 end |
40 if not template then | 40 if not template then |
41 module:log("error", "Error loading template: %s", err); | 41 module:log("error", "Error loading template: %s", err); |
42 template = render("<h1>mod_{module} could not read the template</h1><p>Tried to open <b>{filename}</b><pre>{error}</pre>", | 42 template = render("<h1>mod_{module} could not read the template</h1><p>Tried to open <b>{filename}</b></p><pre>{error}</pre>", |
43 { module = module.name, filename = template_filename, error = err }); | 43 { module = module.name, filename = template_filename, error = err }); |
44 end | 44 end |
45 end | 45 end |
46 | 46 |
47 -- local base_url = module:http_url() .. '/'; -- TODO: Generate links in a smart way | 47 -- local base_url = module:http_url() .. '/'; -- TODO: Generate links in a smart way |