core/configmanager.lua
changeset 12087 ec21e379c145
parent 10379 3d0adbc74c39
child 12444 1ef893715311
equal deleted inserted replaced
12086:e87563fefd85 12087:ec21e379c145
   171 				error(format("Name of Component %q contains forbidden characters", name), 0);
   171 				error(format("Name of Component %q contains forbidden characters", name), 0);
   172 			end
   172 			end
   173 			name = prepped_name;
   173 			name = prepped_name;
   174 			if rawget(config_table, name) and rawget(config_table[name], "defined")
   174 			if rawget(config_table, name) and rawget(config_table[name], "defined")
   175 				and not rawget(config_table[name], "component_module") then
   175 				and not rawget(config_table[name], "component_module") then
   176 				error(format("Component %q clashes with previously defined Host %q, for services use a sub-domain like conference.%s",
   176 				error(format("Component %q clashes with previously defined VirtualHost %q, for services use a sub-domain like conference.%s",
   177 					name, name, name), 0);
   177 					name, name, name), 0);
   178 			end
   178 			end
   179 			set(config_table, name, "component_module", "component");
   179 			set(config_table, name, "component_module", "component");
   180 			-- Don't load the global modules by default
   180 			-- Don't load the global modules by default
   181 			set(config_table, name, "load_global_modules", false);
   181 			set(config_table, name, "load_global_modules", false);