mod_welcome_page/mod_welcome_page.lua
changeset 4980 75b6e5df65f9
parent 4979 733e5513f691
--- a/mod_welcome_page/mod_welcome_page.lua	Mon Jul 18 13:58:27 2022 +0200
+++ b/mod_welcome_page/mod_welcome_page.lua	Mon Jul 18 22:47:54 2022 +0200
@@ -62,10 +62,10 @@
 end
 
 local http_files
-if not pcall(function()
+if prosody.process_type == "prosody" then
 	-- Prosody >= 0.12
 	http_files = require "net.http.files";
-end) then
+else
 	-- Prosody <= 0.11
 	http_files = module:depends "http_files";
 end