# HG changeset patch
# User Link Mauve <linkmauve@linkmauve.fr>
# Date 1744218342 -7200
# Node ID 6b3deaa523ad314954f30f3b7a186ba249c8f282
# Parent  8c98b1dd1ad358ece41b06806a2347c98127f260
mod_welcome_page: Remove compatibility with 0.11

diff -r 8c98b1dd1ad3 -r 6b3deaa523ad mod_welcome_page/mod_welcome_page.lua
--- 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 = {