comparison mod_welcome_page/mod_welcome_page.lua @ 4605:ffb709728210

mod_welcome_page: Add dependency on mod_http_libjs It doesn't look very nice without it.
author Kim Alvefur <zash@zash.se>
date Tue, 29 Jun 2021 12:42:23 +0200
parents 8d1e996034ee
children 733e5513f691
comparison
equal deleted inserted replaced
4604:f0efbb0b0b5b 4605:ffb709728210
9 local site_name = module:get_option("site_name", module.host); 9 local site_name = module:get_option("site_name", module.host);
10 local invite_only = module:get_option_boolean("registration_invite_only", true); 10 local invite_only = module:get_option_boolean("registration_invite_only", true);
11 local open_registration = module:get_option_boolean("welcome_page_open_registration", not invite_only); 11 local open_registration = module:get_option_boolean("welcome_page_open_registration", not invite_only);
12 12
13 module:depends("http"); 13 module:depends("http");
14 module:depends("http_libjs");
14 local invites = module:depends("invites"); 15 local invites = module:depends("invites");
15 16
16 local function load_template(path) 17 local function load_template(path)
17 local template_file, err = io.open(path); 18 local template_file, err = io.open(path);
18 if not template_file then 19 if not template_file then