Comparison

core/configmanager.lua @ 7947:24170d74b00b

core: Split some very long lines [luacheck]
author Kim Alvefur <zash@zash.se>
date Sat, 04 Mar 2017 17:49:48 +0100
parent 6779:6236668da30a
child 8153:c22d5680ca68
comparison
equal deleted inserted replaced
7945:1f4a0e0b7167 7947:24170d74b00b
156 end 156 end
157 env.Host, env.host = env.VirtualHost, env.VirtualHost; 157 env.Host, env.host = env.VirtualHost, env.VirtualHost;
158 158
159 function env.Component(name) 159 function env.Component(name)
160 name = nameprep(name); 160 name = nameprep(name);
161 if rawget(config_table, name) and rawget(config_table[name], "defined") and not rawget(config_table[name], "component_module") then 161 if rawget(config_table, name) and rawget(config_table[name], "defined")
162 and not rawget(config_table[name], "component_module") then
162 error(format("Component %q clashes with previously defined Host %q, for services use a sub-domain like conference.%s", 163 error(format("Component %q clashes with previously defined Host %q, for services use a sub-domain like conference.%s",
163 name, name, name), 0); 164 name, name, name), 0);
164 end 165 end
165 set(config_table, name, "component_module", "component"); 166 set(config_table, name, "component_module", "component");
166 -- Don't load the global modules by default 167 -- Don't load the global modules by default