Software /
code /
prosody-modules
Changeset
6231:6b3deaa523ad
mod_welcome_page: Remove compatibility with 0.11
author | Link Mauve <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 09 Apr 2025 19:05:42 +0200 |
parents | 6230:8c98b1dd1ad3 |
children | 6232:d72010642b31 |
files | mod_welcome_page/mod_welcome_page.lua |
diffstat | 1 files changed, 1 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_welcome_page/mod_welcome_page.lua Wed Apr 09 19:05:35 2025 +0200 +++ b/mod_welcome_page/mod_welcome_page.lua Wed Apr 09 19:05:42 2025 +0200 @@ -3,6 +3,7 @@ local render_html_template = require"util.interpolation".new("%b{}", st.xml_escape, { urlescape = url_escape; }); +local http_files = require "net.http.files"; local template_path = module:get_option_string("welcome_page_template_path", module:get_directory().."/html"); local user_vars = module:get_option("welcome_page_variables", {}); @@ -61,15 +62,6 @@ return 303; end -local http_files -if prosody.process_type == "prosody" then - -- Prosody >= 0.12 - http_files = require "net.http.files"; -else - -- Prosody <= 0.11 - http_files = module:depends "http_files"; -end - module:provides("http", { default_path = "/"; route = {